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
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Mac/Linux x86_64
Any other potentially useful information about your toolchain?
Custom clang 12 toolchain, verified normal cc compilation works fine on all relevant platforms.
What did you do?
I have a global --linkopt=/usr/bin/ld set for my build in order to override the toolchain linker and cgo is not picking it up, causing linking issues. This uncovered an issue with the go rules where they seemingly ignore configuration set via --copt/--linkopt in general.
the above command fails (due to issues with lld) however I have --linkopt set to use the system linker, if it would be properly picked up, the following modification works if I execute it manually, note -fuse-ld=/usr/bin/ld' at the end:
The text was updated successfully, but these errors were encountered:
chancila
changed the title
C++ flags set through command line configuration are ignored by toolchains
C++ flags set through command line configuration are ignored by rules_go cgo logic
Jul 16, 2021
master @ 24c3d41
What version of gazelle are you using?
v0.23.0
What version of Bazel are you using?
4.1
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Mac/Linux x86_64
Any other potentially useful information about your toolchain?
Custom clang 12 toolchain, verified normal cc compilation works fine on all relevant platforms.
What did you do?
I have a global
--linkopt=/usr/bin/ld
set for my build in order to override the toolchain linker and cgo is not picking it up, causing linking issues. This uncovered an issue with the go rules where they seemingly ignore configuration set via--copt
/--linkopt
in general.What did you expect to see?
A successful build
What did you see instead?
the above command fails (due to issues with lld) however I have --linkopt set to use the system linker, if it would be properly picked up, the following modification works if I execute it manually, note
-fuse-ld=/usr/bin/ld'
at the end:The text was updated successfully, but these errors were encountered: