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

Alex
This commit is contained in:
Alexander Neundorf 2009-09-12 02:15:30 -04:00
parent 054be74f8d
commit c6a10370bb
1 changed files with 3 additions and 1 deletions

View File

@ -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)