@@ -918,6 +918,32 @@ please file an issue at https://github.com/bazelbuild/apple_support/issues/new
918
918
],
919
919
)
920
920
921
+ external_include_paths_feature = feature (
922
+ name = "external_include_paths" ,
923
+ flag_sets = [
924
+ flag_set (
925
+ actions = [
926
+ ACTION_NAMES .preprocess_assemble ,
927
+ ACTION_NAMES .linkstamp_compile ,
928
+ ACTION_NAMES .c_compile ,
929
+ ACTION_NAMES .cpp_compile ,
930
+ ACTION_NAMES .cpp_header_parsing ,
931
+ ACTION_NAMES .cpp_module_compile ,
932
+ ACTION_NAMES .clif_match ,
933
+ ACTION_NAMES .objc_compile ,
934
+ ACTION_NAMES .objcpp_compile ,
935
+ ],
936
+ flag_groups = [
937
+ flag_group (
938
+ flags = ["-isystem" , "%{external_include_paths}" ],
939
+ iterate_over = "external_include_paths" ,
940
+ expand_if_available = "external_include_paths" ,
941
+ ),
942
+ ],
943
+ ),
944
+ ],
945
+ )
946
+
921
947
strip_debug_symbols_feature = feature (
922
948
name = "strip_debug_symbols" ,
923
949
flag_sets = [
@@ -2665,6 +2691,7 @@ please file an issue at https://github.com/bazelbuild/apple_support/issues/new
2665
2691
treat_warnings_as_errors_feature ,
2666
2692
no_warn_duplicate_libraries_feature ,
2667
2693
layering_check_feature ,
2694
+ external_include_paths_feature ,
2668
2695
]
2669
2696
2670
2697
if (ctx .attr .cpu == "darwin_x86_64" or
0 commit comments