aboutsummaryrefslogtreecommitdiff
path: root/lib/builtins/CMakeLists.txt
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 /lib/builtins/CMakeLists.txt
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 'lib/builtins/CMakeLists.txt')
-rw-r--r--lib/builtins/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/builtins/CMakeLists.txt b/lib/builtins/CMakeLists.txt
index d5a1efe79026..44a660f5d49d 100644
--- a/lib/builtins/CMakeLists.txt
+++ b/lib/builtins/CMakeLists.txt
@@ -38,8 +38,6 @@ set(GENERIC_SOURCES
ashlti3.c
ashrdi3.c
ashrti3.c
- # FIXME: atomic.c may only be compiled if host compiler understands _Atomic
- # atomic.c
clear_cache.c
clzdi2.c
clzsi2.c
@@ -162,6 +160,12 @@ set(GENERIC_SOURCES
umodsi3.c
umodti3.c)
+if(COMPILER_RT_SUPPORTS_ATOMIC_KEYWORD)
+ set(GENERIC_SOURCES
+ ${GENERIC_SOURCES}
+ atomic.c)
+endif()
+
set(MSVC_SOURCES
divsc3.c
divdc3.c