1
0
mirror of https://github.com/golang/go synced 2024-11-24 04:30:14 -07:00

cmd/dist: stop trying to access runtime/internal/sys.a in debug mode

Now that we don't install the .a files, the installed
runtime/internal/sys.a no longer exists. Stop trying to access it.

Change-Id: Ic437e7ad95be6109d0b2fcfb81e840f5cb476be8
Reviewed-on: https://go-review.googlesource.com/c/go/+/451360
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
This commit is contained in:
Cherry Mui 2022-11-17 21:12:25 -05:00
parent 1fdae32407
commit 199d77aff0

View File

@ -1378,7 +1378,6 @@ func cmdbootstrap() {
goInstall(goBootstrap, toolchain...) goInstall(goBootstrap, toolchain...)
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))
copyfile(pathf("%s/compile2", tooldir), pathf("%s/compile", tooldir), writeExec) copyfile(pathf("%s/compile2", tooldir), pathf("%s/compile", tooldir), writeExec)
} }
@ -1406,7 +1405,6 @@ func cmdbootstrap() {
goInstall(goBootstrap, append([]string{"-a"}, toolchain...)...) goInstall(goBootstrap, append([]string{"-a"}, toolchain...)...)
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))
copyfile(pathf("%s/compile3", tooldir), pathf("%s/compile", tooldir), writeExec) copyfile(pathf("%s/compile3", tooldir), pathf("%s/compile", tooldir), writeExec)
} }
@ -1448,7 +1446,6 @@ func cmdbootstrap() {
checkNotStale(cmdGo, 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))
checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...) checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec) copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
} }