diff --git a/internal/app/app.wa.go b/internal/app/app.wa.go index 5e1db09575f9d8dd23c3a364bcef90b10dfe05d0..281417411d24f4ce21213e44a3142430d17d4875 100644 --- a/internal/app/app.wa.go +++ b/internal/app/app.wa.go @@ -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 } diff --git a/main.go b/main.go index 106713a3a124c4105dddc3cd21167f9031dfde25..40ba614d21466b22264f3fb3f0c8101cd5cdbf14 100644 --- a/main.go +++ b/main.go @@ -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"), } }