diff options
author | hlopko <hlopko@google.com> | 2017-07-04 04:31:11 -0400 |
---|---|---|
committer | John Cater <jcater@google.com> | 2017-07-05 10:57:30 -0400 |
commit | ec41b8cea579e135eca18f808a710abb397994f6 (patch) | |
tree | f187ce5dd8cf767fb058cfb7e4761dad100c7322 /tools/cpp/CROSSTOOL.tpl | |
parent | 6446ffa1ec61f8cfd73edc540ac54e42d15169f9 (diff) |
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
Diffstat (limited to 'tools/cpp/CROSSTOOL.tpl')
-rw-r--r-- | tools/cpp/CROSSTOOL.tpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/cpp/CROSSTOOL.tpl b/tools/cpp/CROSSTOOL.tpl index a65c564217..cb0732b648 100644 --- a/tools/cpp/CROSSTOOL.tpl +++ b/tools/cpp/CROSSTOOL.tpl @@ -303,12 +303,15 @@ toolchain { 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}' } } @@ -544,6 +547,7 @@ toolchain { action: 'c++-link-dynamic-library' expand_if_all_available: 'linkstamp_paths' flag_group { + iterate_over: 'linkstamp_paths' flag: '%{linkstamp_paths}' } } @@ -591,6 +595,7 @@ toolchain { action: 'c++-link-executable' action: 'c++-link-dynamic-library' flag_group { + iterate_over: 'libopts' flag: '%{libopts}' } } @@ -690,6 +695,7 @@ toolchain { action: 'c++-link-executable' action: 'c++-link-dynamic-library' flag_group { + iterate_over: 'legacy_link_flags' flag: '%{legacy_link_flags}' } } |