summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/ARMClang-C.cmake
diff options
context:
space:
mode:
authorJohan Stridkvist <battletwixx@gmail.com>2019-05-13 13:05:47 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-14 18:59:55 (GMT)
commit7b0abaac318b080d9d9044a2665541b840087c89 (patch)
tree622d5a7af0c1e75647d8846524d0fc93ed34c1b3 /Modules/Compiler/ARMClang-C.cmake
parenta8f1527ba46b31c5583999391c05421eb86f4973 (diff)
downloadCMake-7b0abaac318b080d9d9044a2665541b840087c89.zip
CMake-7b0abaac318b080d9d9044a2665541b840087c89.tar.gz
CMake-7b0abaac318b080d9d9044a2665541b840087c89.tar.bz2
ARMClang: Add support for Clang-based ARM compiler
Fixes: #18215
Diffstat (limited to 'Modules/Compiler/ARMClang-C.cmake')
-rw-r--r--Modules/Compiler/ARMClang-C.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/Compiler/ARMClang-C.cmake b/Modules/Compiler/ARMClang-C.cmake
new file mode 100644
index 0000000..0a64a8a
--- /dev/null
+++ b/Modules/Compiler/ARMClang-C.cmake
@@ -0,0 +1,15 @@
+include(Compiler/Clang-C)
+include(Compiler/ARMClang)
+__compiler_armclang(C)
+
+set(CMAKE_C90_STANDARD_COMPILE_OPTION "-std=c90")
+set(CMAKE_C90_EXTENSION_COMPILE_OPTION "-std=gnu90")
+set(CMAKE_C90_STANDARD__HAS_FULL_SUPPORT ON)
+
+set(CMAKE_C99_STANDARD_COMPILE_OPTION "-std=c99")
+set(CMAKE_C99_EXTENSION_COMPILE_OPTION "-std=gnu99")
+set(CMAKE_C99_STANDARD__HAS_FULL_SUPPORT ON)
+
+set(CMAKE_C11_STANDARD_COMPILE_OPTION "-std=c11")
+set(CMAKE_C11_EXTENSION_COMPILE_OPTION "-std=gnu11")
+set(CMAKE_C11_STANDARD__HAS_FULL_SUPPORT ON)