summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-05 16:42:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-05 16:42:01 (GMT)
commitd9600f98802d52e14cf3b2e4cdc143bed7f5778a (patch)
tree77a57c29440f1916be51e2933c8a99d5813026b8 /Tests
parent4ab88500ae3ac3b0be9e8be4df0d00f69efd9ff8 (diff)
parentf60797f75b882acfb89e4dd3698fb085ba182753 (diff)
downloadCMake-d9600f98802d52e14cf3b2e4cdc143bed7f5778a.zip
CMake-d9600f98802d52e14cf3b2e4cdc143bed7f5778a.tar.gz
CMake-d9600f98802d52e14cf3b2e4cdc143bed7f5778a.tar.bz2
Merge topic 'test-Assembler-no-g'
f60797f Tests/Assembler: Drop -g when generating sample assembly source
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Assembler/CMakeLists.txt3
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