Introduce expand_if_none_available to crosstool

This feature allows us to expand a flag_group when a build variable is not
available. This is helpful when migrating crosstools in a backward compatible
way (that works with released bazel as well as with bazel at HEAD).

RELNOTES: NONE.
PiperOrigin-RevId: 143955333
This commit is contained in:
hlopko 2017-01-09 15:12:27 +01:00 committed by Marcel Hlopko
parent 9cc6bd0f71
commit 2aabbef2f1
1 changed files with 5 additions and 3 deletions

View File

@ -103,11 +103,13 @@ message CToolchain {
repeated string expand_if_all_available = 4;
optional string expand_if_true = 5;
repeated string expand_if_none_available = 5;
optional string expand_if_false = 6;
optional string expand_if_true = 6;
optional VariableWithValue expand_if_equal = 7;
optional string expand_if_false = 7;
optional VariableWithValue expand_if_equal = 8;
}
message VariableWithValue {