Explorar o código

fix #12262: use the C dependency scanner also for ASM files

Files for the ASM language are those assembler files which are processed
by the C/CXX compiler, and they may contain preprocessor directives, so
run the C dependency scanner also on them.

Alex
Alex Neundorf %!s(int64=14) %!d(string=hai) anos
pai
achega
e36a1be466
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 1 - 1
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -1559,7 +1559,7 @@ cmLocalUnixMakefileGenerator3
 
     // Create the scanner for this language
     cmDepends *scanner = 0;
-    if(lang == "C" || lang == "CXX" || lang == "RC")
+    if(lang == "C" || lang == "CXX" || lang == "RC" || lang == "ASM")
       {
       // TODO: Handle RC (resource files) dependencies correctly.
       scanner = new cmDependsC(this, targetDir, lang.c_str(), &validDeps);