]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: stop trying to access runtime/internal/sys.a in debug mode
authorCherry Mui <cherryyz@google.com>
Fri, 18 Nov 2022 02:12:25 +0000 (21:12 -0500)
committerCherry Mui <cherryyz@google.com>
Mon, 21 Nov 2022 20:00:40 +0000 (20:00 +0000)
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>

src/cmd/dist/build.go

index d0b71f1e573021f8859e8a812aeb009d363b2d7c..2662f80780a6b61e047f9f96666f96619dbeaa73 100644 (file)
@@ -1378,7 +1378,6 @@ func cmdbootstrap() {
        goInstall(goBootstrap, toolchain...)
        if debug {
                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)
        }
 
@@ -1406,7 +1405,6 @@ func cmdbootstrap() {
        goInstall(goBootstrap, append([]string{"-a"}, toolchain...)...)
        if debug {
                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)
        }
 
@@ -1448,7 +1446,6 @@ func cmdbootstrap() {
        checkNotStale(cmdGo, targets...)
        if debug {
                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")...)
                copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
        }