builder: make sure wasm-opt command line is printed if asked

This commit is contained in:
Damian Gryski
2024-05-30 21:02:18 -07:00
committed by Damian Gryski
parent 272fea13e7
commit bfccf3592a
+4
View File
@@ -840,6 +840,10 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
"--output", result.Executable,
)
if config.Options.PrintCommands != nil {
config.Options.PrintCommands(goenv.Get("WASMOPT"), args...)
}
cmd := exec.Command(goenv.Get("WASMOPT"), args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr