aboutsummaryrefslogtreecommitdiff
path: root/cmake/builtin-config-ix.cmake
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-08-17 19:35:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-08-17 19:35:22 +0000
commitb5f99338f6073aeb6e393caea8ac1148af69bf2c (patch)
tree73503b1588d85bf45474c2d732c7c96a5d350647 /cmake/builtin-config-ix.cmake
parent6f08730ec5f639f05f2f15354171e4a3c9af9dc1 (diff)
downloadsrc-b5f99338f6073aeb6e393caea8ac1148af69bf2c.tar.gz
src-b5f99338f6073aeb6e393caea8ac1148af69bf2c.zip
Vendor import of compiler-rt release_39 branch r278877:vendor/compiler-rt/compiler-rt-release_39-r278877
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=304302 svn path=/vendor/compiler-rt/compiler-rt-release_39-r278877/; revision=304303; tag=vendor/compiler-rt/compiler-rt-release_39-r278877
Diffstat (limited to 'cmake/builtin-config-ix.cmake')
-rw-r--r--cmake/builtin-config-ix.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/builtin-config-ix.cmake b/cmake/builtin-config-ix.cmake
index 432b1fadb177..83466d81bd2f 100644
--- a/cmake/builtin-config-ix.cmake
+++ b/cmake/builtin-config-ix.cmake
@@ -1,4 +1,5 @@
include(BuiltinTests)
+include(CheckCSourceCompiles)
# Make all the tests only check the compiler
set(TEST_COMPILE_ONLY On)
@@ -14,6 +15,15 @@ builtin_check_c_compiler_flag(-mfloat-abi=soft COMPILER_RT_HAS_FLOAT_ABI_SO
builtin_check_c_compiler_flag(-mfloat-abi=hard COMPILER_RT_HAS_FLOAT_ABI_HARD_FLAG)
builtin_check_c_compiler_flag(-static COMPILER_RT_HAS_STATIC_FLAG)
+builtin_check_c_compiler_source(COMPILER_RT_SUPPORTS_ATOMIC_KEYWORD
+"
+int foo(int x, int y) {
+ _Atomic int result = x * y;
+ return result;
+}
+")
+
+
set(ARM64 aarch64)
set(ARM32 arm armhf)
set(X86 i386 i686)