diff options
author | Brad King <brad.king@kitware.com> | 2013-11-01 14:55:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-01 14:55:58 (GMT) |
commit | f60797f75b882acfb89e4dd3698fb085ba182753 (patch) | |
tree | e0880b82b553fcfa16a2d84dbd1d0456149f8d8e | |
parent | 20bb60917125ee69e5ce0131934f214be15fdcb6 (diff) | |
download | CMake-f60797f75b882acfb89e4dd3698fb085ba182753.zip CMake-f60797f75b882acfb89e4dd3698fb085ba182753.tar.gz CMake-f60797f75b882acfb89e4dd3698fb085ba182753.tar.bz2 |
Tests/Assembler: Drop -g when generating sample assembly source
Some compilers, such as Clang on OS X, do not want the -g flag for both
generating assembly code and assembling it. Drop the -g flag from
generation of main.s in the Assembler test.
-rw-r--r-- | Tests/Assembler/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt index 1f07dc9..fdc5c00 100644 --- a/Tests/Assembler/CMakeLists.txt +++ b/Tests/Assembler/CMakeLists.txt @@ -15,6 +15,9 @@ if("${CMAKE_GENERATOR}" MATCHES "Makefile|Xcode" AND if(CMAKE_OSX_SYSROOT AND CMAKE_C_SYSROOT_FLAG AND NOT ";${C_FLAGS};" MATCHES ";${CMAKE_C_SYSROOT_FLAG};") list(APPEND C_FLAGS ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}) endif() + # Clang on OS X, and perhaps other compilers, do not support -g + # for both generating and assembling, so drop it from generating. + list(REMOVE_ITEM C_FLAGS -g) set(SRCS main.s) add_custom_command( OUTPUT main.s |