From 199d77aff0372daac2db39d7fb2da16269e4ffd4 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Thu, 17 Nov 2022 21:12:25 -0500 Subject: [PATCH] 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 Reviewed-by: Michael Matloob Reviewed-by: Austin Clements Run-TryBot: Cherry Mui --- src/cmd/dist/build.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index d0b71f1e573..2662f80780a 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -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) }