Replace hardcoded -g0 with toolchain features#29048
Conversation
Must be paired with a rules_cc version bump that includes bazelbuild/rules_cc#649 Fixes bazelbuild#13308 Fixes bazelbuild#24545
|
cc @gregestren |
|
Nice simplification!
What's the right merge sequence? Given that presubmit CI isn't failing, Bazel's core CI doesn't cover this? |
|
yea ideally we would merge the rules_cc change, create a release, and then i would pull that release bump into this change. i think the risk of merging them out of sync is actually that internal google toolchains are expecting this and don't get it. because the default public toolchains default to having this for |
|
Okay, we can put this into the internal merge queue and see what happens? |
|
@gregestren how'd this one go |
|
I just wanted to double-check with @trybka for merging . Re-pinged. |
|
Googlers are discussing some proprietary toolchain issues. I'm trying to track that but I think in a worst case we could fork Google's exec configuration to keep |
|
Yeah, we tried to import bazelbuild/rules_cc#649 and ran into issues, trying to sort those out. Landing this will also require either an exec config fork in the interim or other toolchain additions (i.e. setting -g0 in exec). But doing so would require landing rules_cc PR#649 first. |
Must be paired with a rules_cc version bump that includes bazelbuild/rules_cc#649
Fixes #13308
Fixes #24545
RELNOTES[inc]: Remove default
-g0for host tools. This is still added with the default CC toolchains or if you don't setno_legacy_features