Makefiles: Honor CMAKE_EXPORT_COMPILE_COMMANDS for ASM

Generate build command for assembly file in `compile_command.json`.

Issue: #20059
This commit is contained in:
Maxime Girard
2020-11-04 21:19:34 +01:00
committed by Brad King
parent 622ac065d2
commit 52152409c3

View File

@@ -795,7 +795,7 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(
bool lang_has_preprocessor =
((lang == "C") || (lang == "CXX") || (lang == "OBJC") ||
(lang == "OBJCXX") || (lang == "Fortran") || (lang == "CUDA") ||
lang == "ISPC");
lang == "ISPC" || lang == "ASM");
bool const lang_has_assembly = lang_has_preprocessor;
bool const lang_can_export_cmds = lang_has_preprocessor;