Skip to content

Replace hardcoded -g0 with toolchain features#29048

Open
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/replace-hardcoded-g0-with-toolchain-features
Open

Replace hardcoded -g0 with toolchain features#29048
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/replace-hardcoded-g0-with-toolchain-features

Conversation

@keith
Copy link
Copy Markdown
Member

@keith keith commented Mar 22, 2026

Must be paired with a rules_cc version bump that includes bazelbuild/rules_cc#649

Fixes #13308
Fixes #24545

Must be paired with a rules_cc version bump that includes bazelbuild/rules_cc#649

Fixes bazelbuild#13308
Fixes bazelbuild#24545
@keith
Copy link
Copy Markdown
Member Author

keith commented Mar 22, 2026

cc @gregestren

@iancha1992 iancha1992 added the team-Rules-CPP Issues for C++ rules label Mar 23, 2026
@gregestren gregestren self-requested a review March 25, 2026 15:35
@gregestren
Copy link
Copy Markdown
Contributor

Nice simplification!

Must be paired with a rules_cc version bump that includes bazelbuild/rules_cc#649

What's the right merge sequence? Given that presubmit CI isn't failing, Bazel's core CI doesn't cover this?

@keith
Copy link
Copy Markdown
Member Author

keith commented Mar 25, 2026

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 opt, so only folks who override the opt flags wouldn't get this behavior.

@gregestren
Copy link
Copy Markdown
Contributor

Okay, we can put this into the internal merge queue and see what happens?

@gregestren gregestren added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally team-Rules-CPP Issues for C++ rules

Projects

None yet

3 participants