summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-09-12 02:15:30 -0400
committerAlexander Neundorf <neundorf@kde.org>2009-09-12 02:15:30 -0400
commitc6a10370bb021f9123f7fdb9fa24dcb4fdd2679b (patch)
treec16c2f2e9175e85d26cd13e8342ace35abe1973c /Modules
parent054be74f8deeb34b9df0b8bb6864e39e4bbb95af (diff)
downloadcmake-c6a10370bb021f9123f7fdb9fa24dcb4fdd2679b.tar.gz
Don't pass *.S files to the assembler, they must go through gcc, because they must be preprocessed
Alex
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeASM-ATTInformation.cmake4
1 files changed, 3 insertions, 1 deletions
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)