Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go link: use external linker when in race mode (bazelbuild#3370)
As of clang 15.0.3 (via zig v0.10), when building with `race = "on"` on x86_64 Linux, we observe the following: runtime/cgo(.text): relocation target memset not defined From my past experience, reporting a Go linker error when the external linker works has a high chance to get the ticket closed as unactionable; so it makes sense to just use an external linker, when it works. Also, do not set the flag if external cpp toolchain is not set up.
- Loading branch information