Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdNative = &cli.Command{ Hidden: true, Name: "native", Usage: "compile Wa source code to native executable", Flags: []cli.Flag{ appbase.MakeFlag_output(), appbase.MakeFlag_target(), appbase.MakeFlag_tags(), &cli.BoolFlag{ Name: "debug", Usage: "dump orginal intermediate representation", }, &cli.StringFlag{ Name: "clang", Usage: "set llvm/clang path", }, &cli.StringFlag{ Name: "llc", Usage: "set llvm/llc path", }, }, Action: func(c *cli.Context) error { outfile := c.String("output") target := c.String("target") debug := c.Bool("debug") infile := "" if c.NArg() == 0 { fmt.Fprintf(os.Stderr, "no input file") os.Exit(1) } infile = c.Args().First() opt := appbase.BuildOptions(c, config.WaBackend_llvm) if err := LLVMRun(opt, infile, outfile, target, debug); err != nil { fmt.Println(err) os.Exit(1) } return nil }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.