You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using bazel with the rules_go, gazelle and hermetic_cc_toolchain bazel modules (bzlmod) to build an application. The application is allowed to rely on cgo (e.g. os/user)
What did you see happen?
The final binary was linked with the linker provided by hermetic_cc_toolchain and not Go's internal linker.
What did you expect to see?
I expected this to be linked with Go's linker. In this case it matters as there is a significant difference in linking speed.
The text was updated successfully, but these errors were encountered:
seankhliao
changed the title
cmd/go: Uses external linker when using the hermetic_cc_toolchain bzlmod as C/C++ toolchain
cmd/go: allow -fsanitize-undefined-strip-path-components
Mar 13, 2025
Go version
go version go1.23.3 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I am using bazel with the rules_go, gazelle and hermetic_cc_toolchain bazel modules (bzlmod) to build an application. The application is allowed to rely on cgo (e.g. os/user)
What did you see happen?
The final binary was linked with the linker provided by hermetic_cc_toolchain and not Go's internal linker.
What did you expect to see?
I expected this to be linked with Go's linker. In this case it matters as there is a significant difference in linking speed.
The text was updated successfully, but these errors were encountered: