@@ -849,6 +849,32 @@ def _impl(ctx):
849
849
],
850
850
)
851
851
852
+ external_include_paths_feature = feature (
853
+ name = "external_include_paths" ,
854
+ flag_sets = [
855
+ flag_set (
856
+ actions = [
857
+ ACTION_NAMES .preprocess_assemble ,
858
+ ACTION_NAMES .linkstamp_compile ,
859
+ ACTION_NAMES .c_compile ,
860
+ ACTION_NAMES .cpp_compile ,
861
+ ACTION_NAMES .cpp_header_parsing ,
862
+ ACTION_NAMES .cpp_module_compile ,
863
+ ACTION_NAMES .clif_match ,
864
+ ACTION_NAMES .objc_compile ,
865
+ ACTION_NAMES .objcpp_compile ,
866
+ ],
867
+ flag_groups = [
868
+ flag_group (
869
+ flags = ["/external:I" , "%{external_include_paths}" ],
870
+ iterate_over = "external_include_paths" ,
871
+ expand_if_available = "external_include_paths" ,
872
+ ),
873
+ ],
874
+ ),
875
+ ],
876
+ )
877
+
852
878
linkstamps_feature = feature (
853
879
name = "linkstamps" ,
854
880
flag_sets = [
@@ -1071,6 +1097,7 @@ def _impl(ctx):
1071
1097
msvc_compile_env_feature ,
1072
1098
msvc_link_env_feature ,
1073
1099
include_paths_feature ,
1100
+ external_include_paths_feature ,
1074
1101
preprocessor_defines_feature ,
1075
1102
parse_showincludes_feature ,
1076
1103
generate_pdb_file_feature ,
0 commit comments