Skip to content

Disabling warnings from external headers #46

@tpudlik

Description

@tpudlik

The default Bazel C++ toolchain has a cool feature that allows disabling warnings from external headers: bazelbuild/bazel#13107. It would be nice to add this to rules_cc_toolchain, too. It would make clang version upgrades less painful for downstream users like Pigweed (since third-party deps may pick up lots of new warnings on a version upgrade).

The implementation in the default toolchain is actually very simple, but it's not possible to express as a cc_feature, so it's not immediately clear to me how to add it.

Perhaps this should wait until the modular cc toolchains is finalized, since that may involve big changes to rules_cc_toolchain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions