-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
bazelbuild/rules_cc
#649Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)not staleIssues or PRs that are inactive but not considered staleIssues or PRs that are inactive but not considered staleteam-Rules-CPPIssues for C++ rulesIssues for C++ rulestype: feature request
Description
Just stumbled across some lingering hard-coded compiler flags:
bazel/src/main/java/com/google/devtools/build/lib/rules/cpp/CppOptions.java
Lines 1093 to 1094 in 76a8498
| coptListBuilder.add("-g0"); | |
| cxxoptListBuilder.add("-g0"); |
Could these be removed?
Specifically, it'd be nice to have a feature similar to opt and fastbuild that can be used as a condition to enable flags specifically in the host build. Ideally, I would suggest host. This would cause the host build to enable both opt and host features. And in turn, the crosstool configuration could disable debug info in the host build even if it would be enabled as part of the opt build for the target.
I noticed this because as implemented, the code actually adds -g0 twice.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)not staleIssues or PRs that are inactive but not considered staleIssues or PRs that are inactive but not considered staleteam-Rules-CPPIssues for C++ rulesIssues for C++ rulestype: feature request