Create "target_os" option to make selecting on platform possible.
This flag is not meant to be set on the commandline but to be readable from a Crosstool. This makes it so //tool/cc_target_os:android and friends don't require a hardcoded Crosstool top
PiperOrigin-RevId: 144983864
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 770d3ea..7279d3a 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
@@ -451,7 +451,10 @@
// why they are recorded here.
repeated string debian_extra_requires = 33;
- // Next free id: 55
+ // Unused, for compatibility with things internal to Google.
+ optional string cc_target_os = 55;
+
+ // Next free id: 56
}
message ToolPath {