Add a boolean flag to a Feature to specify whether it is enabled by default.

This enables us to configure default features for each toolchain without having
to hard-code anything in class such as CcCommon.

PiperOrigin-RevId: 146904287
This commit is contained in:
Googler 2017-02-08 15:37:22 +01:00 committed by Marcel Hlopko
parent fe7d55ba32
commit ad6e1ca6c5
1 changed files with 6 additions and 1 deletions

View File

@ -180,7 +180,7 @@ message CToolchain {
}
// Contains all flag specifications for one feature.
// Next ID: 7
// Next ID: 8
message Feature {
// The feature's name. Feature names are generally defined by Bazel; it is
// possible to introduce a feature without a change to Bazel by adding a
@ -188,6 +188,11 @@ message CToolchain {
// feature in the BUILD file.
optional string name = 1;
// If 'true', this feature is enabled unless a rule type explicitly marks it
// as unssupported. Such features cannot be turned of from with in a BUILD
// file or the command line.
optional bool enabled = 7;
// If the given feature is enabled, the flag sets will be applied for the
// actions in the modes that they are specified for.
repeated FlagSet flag_set = 2;