Skip to content

Replace hard-coded -g0 flags with a feature that can be used in the toolchain configuration. #13308

@chandlerc

Description

@chandlerc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)not staleIssues or PRs that are inactive but not considered staleteam-Rules-CPPIssues for C++ rulestype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions