Remove implicit iteration from Crosstool
Up until now we allowed implicit iteration, e.g.:
flag_group { flag: '%{some_sequence_variable}' }
From now on, snippet above will raise an error. We require explicit
'iterate_over' message, e.g.:
flag_group {
iterate_over: 'some_sequence_variable'
flag: '%{some_sequence_variable}'
}
RELNOTES: Implicit iteration in the CROSSTOOL has been removed, use explicit 'iterate_over' message.
PiperOrigin-RevId: 160871888
diff --git a/tools/cpp/CROSSTOOL b/tools/cpp/CROSSTOOL
index 73b83f3..684a5cb 100644
--- a/tools/cpp/CROSSTOOL
+++ b/tools/cpp/CROSSTOOL
@@ -680,12 +680,15 @@
action: 'c++-header-preprocessing'
action: 'c++-module-compile'
flag_group {
+ iterate_over: 'quote_include_paths'
flag: '/I%{quote_include_paths}'
}
flag_group {
+ iterate_over: 'include_paths'
flag: '/I%{include_paths}'
}
flag_group {
+ iterate_over: 'system_include_paths'
flag: '/I%{system_include_paths}'
}
}