diff options
Diffstat (limited to 'Tests/Assembler')
-rw-r--r-- | Tests/Assembler/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/Assembler/main-linux-x86-gas.s | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt index 512e3cf..836c88c 100644 --- a/Tests/Assembler/CMakeLists.txt +++ b/Tests/Assembler/CMakeLists.txt @@ -3,7 +3,7 @@ project(Assembler) 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(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$") message(STATUS "Trying to enable ASM-ATT for Linux/x86") 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 set(SRCS main-linux-x86-gas.s) 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$") if(NOT SRCS) diff --git a/Tests/Assembler/main-linux-x86-gas.s b/Tests/Assembler/main-linux-x86-gas.s index 9e260a3..da8e845 100644 --- a/Tests/Assembler/main-linux-x86-gas.s +++ b/Tests/Assembler/main-linux-x86-gas.s @@ -1,4 +1,3 @@ - .file "main.c" .section .rodata .align 4 .LC0: |