Just stumbled across some lingering hard-coded compiler flags:
|
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.
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
Could these be removed?
Specifically, it'd be nice to have a feature similar to
optandfastbuildthat can be used as a condition to enable flags specifically in the host build. Ideally, I would suggesthost. This would cause the host build to enable bothoptandhostfeatures. And in turn, the crosstool configuration could disable debug info in the host build even if it would be enabled as part of theoptbuild for the target.I noticed this because as implemented, the code actually adds
-g0twice.