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
diff --git a/third_party/com/github/bazelbuild/bazel/src/main/protobuf/crosstool_config.proto b/third_party/com/github/bazelbuild/bazel/src/main/protobuf/crosstool_config.proto
index 5361e82..f1123f9 100644
--- a/third_party/com/github/bazelbuild/bazel/src/main/protobuf/crosstool_config.proto
+++ b/third_party/com/github/bazelbuild/bazel/src/main/protobuf/crosstool_config.proto
@@ -180,7 +180,7 @@
}
// 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 @@
// 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;