cmd/go: -toolexec
program inconsistently used for C toolchain
#64580
Milestone
-toolexec
program inconsistently used for C toolchain
#64580
Go version
go version devel go1.22-098f059d Mon Dec 4 23:03:04 2023 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
cmd/go/internal/work
package, bothBuilder.toolID
andBuilder.gccToolID
wrap the invocation of the tool withcfg.BuildToolexec
:CC=gcc gotip build -toolexec='/bin/time --format "%E %C"' -x -a runtime/cgo
.gcc
invocations.What did you expect to see?
/bin/time
output forgcc
commands executed while buildingruntime/cgo
, orgcc
commands consistently not wrapped with the-toolexec
command.What did you see instead?
/bin/time … gcc
invocation inBuilder.gccToolID
is not included in the-x
log, and its output is not printed like othertoolexec
output.gcc
invocations elsewhere in the build process are not wrapped with/bin/time
as requested.CC=gcc gotip build -toolexec='/bin/time --format "%E %C"' -x -a runtime/cgo 2>&1 | grep gcc
The text was updated successfully, but these errors were encountered: