Skip to content

Commit bfccf35

Browse files
committed
builder: make sure wasm-opt command line is printed if asked
1 parent 272fea1 commit bfccf35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/build.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,10 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
840840
"--output", result.Executable,
841841
)
842842

843+
if config.Options.PrintCommands != nil {
844+
config.Options.PrintCommands(goenv.Get("WASMOPT"), args...)
845+
}
846+
843847
cmd := exec.Command(goenv.Get("WASMOPT"), args...)
844848
cmd.Stdout = os.Stdout
845849
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)