@@ -750,10 +750,7 @@ def _create_cc_compile_actions(
750
750
category = artifact_category .INCLUDED_FILE_LIST ,
751
751
output_name = output_name_base ,
752
752
),
753
- ) if (
754
- _dotd_files_enabled (language , cpp_configuration , feature_configuration ) and
755
- _use_dotd_file (feature_configuration , source_artifact )
756
- ) else None
753
+ ) if _dotd_files_enabled (language , cpp_configuration , feature_configuration ) else None
757
754
diagnostics_file = _get_compile_output_file (
758
755
action_construction_context ,
759
756
label ,
@@ -867,15 +864,6 @@ def _create_module_action(
867
864
def _get_compile_output_file (ctx , label , * , output_name ):
868
865
return ctx .actions .declare_file (paths .join ("_objs" , label .name , output_name ))
869
866
870
- def _use_dotd_file (feature_configuration , source_file ):
871
- extension = "." + source_file .extension if source_file .extension else ""
872
- header_discover_required = extension not in (extensions .ASSEMBLER + extensions .CPP_MODULE )
873
- use_header_modules = (
874
- feature_configuration .is_enabled ("use_header_modules" ) and
875
- extension in extensions .CC_SOURCE + extensions .CC_HEADER + extensions .CPP_MODULE_MAP
876
- )
877
- return header_discover_required and not use_header_modules
878
-
879
867
def _dotd_files_enabled (language , cpp_configuration , feature_configuration ):
880
868
enabled_in_config = (
881
869
_starlark_cc_semantics .dotd_files_enabled (cpp_configuration ) if language == "cpp" else cpp_configuration .objc_should_generate_dotd_files ()
@@ -892,8 +880,8 @@ def _serialized_diagnostics_file_enabled(feature_configuration):
892
880
_SOURCE_TYPES_FOR_CXXOPTS = set (
893
881
extensions .CC_SOURCE +
894
882
extensions .CC_HEADER +
895
- extensions . CLIF_INPUT_PROTO +
896
- extensions . CPP_MODULE_MAP +
883
+ [ ".cppmap" ] + # cpp module map
884
+ [ ".pcm" , ".gcm" , ".ifc" ] + # clif input proto
897
885
[".mm" ], # objc source
898
886
)
899
887
0 commit comments