mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
builder: make sure wasm-opt command line is printed if asked
This commit is contained in:
committed by
Damian Gryski
parent
272fea13e7
commit
bfccf3592a
@@ -840,6 +840,10 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
|
|||||||
"--output", result.Executable,
|
"--output", result.Executable,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if config.Options.PrintCommands != nil {
|
||||||
|
config.Options.PrintCommands(goenv.Get("WASMOPT"), args...)
|
||||||
|
}
|
||||||
|
|
||||||
cmd := exec.Command(goenv.Get("WASMOPT"), args...)
|
cmd := exec.Command(goenv.Get("WASMOPT"), args...)
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|||||||
Reference in New Issue
Block a user