提交 761f041d 编写于 作者: chai2010's avatar chai2010

去掉对 llvm 的 wasm 依赖

上级 30a43daf
......@@ -39,8 +39,6 @@ type Option struct {
TargetArch string
TargetOS string
Clang string
WasmLLC string
WasmLD string
}
// 命令行程序对象
......@@ -68,26 +66,6 @@ func NewApp(opt *Option) *App {
p.opt.Clang = "clang"
}
}
if p.opt.WasmLLC == "" {
if runtime.GOOS == "windows" {
p.opt.WasmLLC, _ = exec.LookPath("llc.exe")
} else {
p.opt.WasmLLC, _ = exec.LookPath("llc")
}
if p.opt.WasmLLC == "" {
p.opt.WasmLLC = "llc"
}
}
if p.opt.WasmLD == "" {
if runtime.GOOS == "windows" {
p.opt.WasmLD, _ = exec.LookPath("wasm-ld.exe")
} else {
p.opt.WasmLD, _ = exec.LookPath("wasm-ld")
}
if p.opt.WasmLD == "" {
p.opt.WasmLD = "wasm-ld"
}
}
if p.opt.TargetOS == "" {
p.opt.TargetOS = runtime.GOOS
}
......
......@@ -33,8 +33,6 @@ func main() {
&cli.StringFlag{Name: "arch", Usage: "set target Arch", Value: runtime.GOARCH},
&cli.StringFlag{Name: "backend", Usage: "set backend code generator"},
&cli.StringFlag{Name: "clang", Usage: "set clang"},
&cli.StringFlag{Name: "wasm-llc", Usage: "set wasm-llc"},
&cli.StringFlag{Name: "wasm-ld", Usage: "set wasm-ld"},
&cli.BoolFlag{Name: "debug", Aliases: []string{"d"}, Usage: "set debug mode"},
&cli.StringFlag{Name: "trace", Aliases: []string{"t"}, Usage: "set trace mode (*|app|compiler|loader)"},
}
......@@ -383,7 +381,5 @@ func build_Options(c *cli.Context) *app.Option {
TargetOS: c.String("os"),
TargetArch: c.String("arch"),
Clang: c.String("clang"),
WasmLLC: c.String("wasm-llc"),
WasmLD: c.String("wasm-ld"),
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册