浏览代码

Don't pass *.S files to the assembler, they must go through gcc, because they must be preprocessed

Alex
Alexander Neundorf 16 年之前
父节点
当前提交
c6a10370bb
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Modules/CMakeASM-ATTInformation.cmake

+ 3 - 1
Modules/CMakeASM-ATTInformation.cmake

@@ -1,6 +1,8 @@
 # support for AT&T syntax assemblers, e.g. GNU as
 
 SET(ASM_DIALECT "-ATT")
-SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;S;asm)
+# *.S files are supposed to be preprocessed, so they should not be passed to
+# assembler but should be processed by gcc
+SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;asm)
 INCLUDE(CMakeASMInformation)
 SET(ASM_DIALECT)