COMP: skip APPLE, since there with universal binaries the assembler file would be built for both architectures
Alex
This commit is contained in:
parent
f9fb18f875
commit
0589ff74ae
|
@ -3,7 +3,7 @@ project(Assembler)
|
||||||
set(SRCS)
|
set(SRCS)
|
||||||
|
|
||||||
# if no file has been set as source and we are on linux with an x86 processor try to use the gas/as assembler
|
# if no file has been set as source and we are on linux with an x86 processor try to use the gas/as assembler
|
||||||
if(NOT SRCS AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
if(NOT SRCS AND NOT APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
||||||
# if(NOT SRCS AND CMAKE_SYSTEM_NAME MATCHES Linux AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
# if(NOT SRCS AND CMAKE_SYSTEM_NAME MATCHES Linux AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
||||||
message(STATUS "Trying to enable ASM-ATT for Linux/x86")
|
message(STATUS "Trying to enable ASM-ATT for Linux/x86")
|
||||||
enable_language(ASM-ATT)
|
enable_language(ASM-ATT)
|
||||||
|
@ -12,7 +12,7 @@ if(NOT SRCS AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
||||||
# this assembler file was created using gcc -S main.c
|
# this assembler file was created using gcc -S main.c
|
||||||
set(SRCS main-linux-x86-gas.s)
|
set(SRCS main-linux-x86-gas.s)
|
||||||
endif(CMAKE_ASM-ATT_COMPILER_WORKS)
|
endif(CMAKE_ASM-ATT_COMPILER_WORKS)
|
||||||
endif(NOT SRCS AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
endif(NOT SRCS AND NOT APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
||||||
# endif(NOT SRCS AND CMAKE_SYSTEM_NAME MATCHES Linux AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
# endif(NOT SRCS AND CMAKE_SYSTEM_NAME MATCHES Linux AND CMAKE_SYSTEM_PROCESSOR MATCHES "[ix].?86$")
|
||||||
|
|
||||||
if(NOT SRCS)
|
if(NOT SRCS)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
.file "main.c"
|
|
||||||
.section .rodata
|
.section .rodata
|
||||||
.align 4
|
.align 4
|
||||||
.LC0:
|
.LC0:
|
||||||
|
|
Loading…
Reference in New Issue