File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,6 +264,22 @@ def _impl(ctx):
264264 ],
265265 )
266266
267+ external_include_paths_feature = feature (
268+ name = "external_include_paths" ,
269+ flag_sets = [
270+ flag_set (
271+ actions = _all_compile_actions ,
272+ flag_groups = [
273+ flag_group (
274+ flags = ["-isystem" , "%{external_include_paths}" ],
275+ iterate_over = "external_include_paths" ,
276+ expand_if_available = "external_include_paths" ,
277+ ),
278+ ],
279+ ),
280+ ],
281+ )
282+
267283 return cc_common .create_cc_toolchain_config_info (
268284 ctx = ctx ,
269285 toolchain_identifier = ctx .attr .toolchain_identifier ,
@@ -284,6 +300,7 @@ def _impl(ctx):
284300 opt_feature ,
285301 fastbuild_feature ,
286302 generate_linkmap_feature ,
303+ external_include_paths_feature ,
287304 toolchain_compiler_flags ,
288305 cxx_flags ,
289306 conly_flags ,
You can’t perform that action at this time.
0 commit comments