Commit 5d4f0474 authored by Agniva De Sarker's avatar Agniva De Sarker Committed by Brad Fitzpatrick

cmd/dist: skip building tools for js/wasm

Fixes #25911

Change-Id: Id3b5ea5494544e9e7f889831cefaf080cae8865d
Reviewed-on: https://go-review.googlesource.com/120655Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent aad71d31
...@@ -1302,9 +1302,14 @@ func cmdbootstrap() { ...@@ -1302,9 +1302,14 @@ func cmdbootstrap() {
os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch)) os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
xprintf("Building packages and commands for target, %s/%s.\n", goos, goarch) xprintf("Building packages and commands for target, %s/%s.\n", goos, goarch)
} }
goInstall(goBootstrap, "std", "cmd") targets := []string{"std", "cmd"}
checkNotStale(goBootstrap, "std", "cmd") if goos == "js" && goarch == "wasm" {
checkNotStale(cmdGo, "std", "cmd") // Skip the cmd tools for js/wasm. They're not usable.
targets = targets[:1]
}
goInstall(goBootstrap, targets...)
checkNotStale(goBootstrap, targets...)
checkNotStale(cmdGo, targets...)
if debug { if debug {
run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full") run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
run("", ShowOutput|CheckExit, pathf("%s/buildid", tooldir), pathf("%s/pkg/%s_%s/runtime/internal/sys.a", goroot, goos, goarch)) run("", ShowOutput|CheckExit, pathf("%s/buildid", tooldir), pathf("%s/pkg/%s_%s/runtime/internal/sys.a", goroot, goos, goarch))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment