From c6a10370bb021f9123f7fdb9fa24dcb4fdd2679b Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 12 Sep 2009 02:15:30 -0400 Subject: Don't pass *.S files to the assembler, they must go through gcc, because they must be preprocessed Alex --- Modules/CMakeASM-ATTInformation.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Modules') diff --git a/Modules/CMakeASM-ATTInformation.cmake b/Modules/CMakeASM-ATTInformation.cmake index 353473af93..ccd8b12b45 100644 --- a/Modules/CMakeASM-ATTInformation.cmake +++ b/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) -- cgit v1.2.1