summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-15 13:36:05 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-15 13:40:20 (GMT)
commit7e8471ce7bc6ea2537c9bf513935dfe1e4424c5e (patch)
treeab681ed29fd1db160476e7a6f4c0d34f7c8d242d
parentaddefc2ae3b33a75a7152730146b46b319118a24 (diff)
downloadCMake-7e8471ce7bc6ea2537c9bf513935dfe1e4424c5e.zip
CMake-7e8471ce7bc6ea2537c9bf513935dfe1e4424c5e.tar.gz
CMake-7e8471ce7bc6ea2537c9bf513935dfe1e4424c5e.tar.bz2
Recognize Clang ASM support (#13473)
Since commit 571dc748 (Recognize Clang C and C++ compilers, 2010-05-17) we recognize Clang C and C++ support. Add Compiler/Clang-ASM.cmake to enable use of Clang for ASM too. Also teach Assembler test to try Clang as an assembler. Suggested-by: Tobias Pape <tobiaspape@gmail.com>
-rw-r--r--Modules/Compiler/Clang-ASM.cmake1
-rw-r--r--Tests/Assembler/CMakeLists.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang-ASM.cmake b/Modules/Compiler/Clang-ASM.cmake
new file mode 100644
index 0000000..a908b60
--- /dev/null
+++ b/Modules/Compiler/Clang-ASM.cmake
@@ -0,0 +1 @@
+include(Compiler/GNU-ASM)
diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt
index 5f71036..415fcce 100644
--- a/Tests/Assembler/CMakeLists.txt
+++ b/Tests/Assembler/CMakeLists.txt
@@ -8,7 +8,7 @@ set(SRCS)
# (at least) the following toolchains can process assembler files directly
# and also generate assembler files from C:
if("${CMAKE_GENERATOR}" MATCHES "Makefile")
- if(("${CMAKE_C_COMPILER_ID}" MATCHES "^(GNU|HP|SunPro|XL)$") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel" AND UNIX))
+ if(("${CMAKE_C_COMPILER_ID}" MATCHES "^(GNU|Clang|HP|SunPro|XL)$") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel" AND UNIX))
set(C_FLAGS "${CMAKE_C_FLAGS}")
separate_arguments(C_FLAGS)
set(SRCS main.s)