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
if this is a bug or feature request, fill the form below as best as you can.
Description of the problem / feature request:
Bazel hardcodes passing -static-libgcc even if you compile with -rtlib=compiler-rt. This doesn't particularly hurt anything, but it causes warnings to be spammed: clang: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument]
Closes#6825.
Closes#6185.
This is a rollforward of 5d77edf after Bazel with the flag was cut.
RELNOTES: Incompatible flag `--incompatible_dont_emit_static_libgcc` has been flipped (#6825)
PiperOrigin-RevId: 233589665
Description of the problem / feature request:
Bazel hardcodes passing
-static-libgcc
even if you compile with-rtlib=compiler-rt
. This doesn't particularly hurt anything, but it causes warnings to be spammed:clang: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument]
Looks like this happens here:
bazel/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java
Line 329 in aaba6fe
This should be configurable somewhere toolchain/crosstool related.
Feature requests: what underlying problem are you trying to solve with this feature?
Trying to use compiler-rt with bazel
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build with clang and pass
-rtlib=compiler-rt
What operating system are you running Bazel on?
Ubuntu 14.04
What's the output of
bazel info release
?release 0.16.0
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?Not a public repo
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
No
The text was updated successfully, but these errors were encountered: