summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-09-23 15:28:44 +0000
committerChris Bieneman <beanz@apple.com>2015-09-23 15:28:44 +0000
commit2a6c13274c5cc36654073f3865f7bdf5bf10250d (patch)
tree8070bd89c937b65c6741318049713bb498cfc71c /compiler-rt/lib
parent9c46be2d2f29d1f0c8ef4cffd483d1bab8014395 (diff)
downloadbcm5719-llvm-2a6c13274c5cc36654073f3865f7bdf5bf10250d.tar.gz
bcm5719-llvm-2a6c13274c5cc36654073f3865f7bdf5bf10250d.zip
[CMake] [builtins] Only include the atomic builtins if(APPLE).
There are lingering issues building the atomic builtins with various versions of gcc. To unblock people we can only include them on Apple platforms where they are more tested. llvm-svn: 248386
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r--compiler-rt/lib/builtins/CMakeLists.txt17
1 files changed, 11 insertions, 6 deletions
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index 03e3a68425a..6ea3850280f 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -17,12 +17,6 @@ set(GENERIC_SOURCES
ashlti3.c
ashrdi3.c
ashrti3.c
- atomic_flag_clear.c
- atomic_flag_clear_explicit.c
- atomic_flag_test_and_set.c
- atomic_flag_test_and_set_explicit.c
- atomic_signal_fence.c
- atomic_thread_fence.c
# FIXME: atomic.c may only be compiled if host compiler understands _Atomic
# atomic.c
clear_cache.c
@@ -145,6 +139,17 @@ set(GENERIC_SOURCES
umodsi3.c
umodti3.c)
+if(APPLE)
+ set(GENERIC_SOURCES
+ ${GENERIC_SOURCES}
+ atomic_flag_clear.c
+ atomic_flag_clear_explicit.c
+ atomic_flag_test_and_set.c
+ atomic_flag_test_and_set_explicit.c
+ atomic_signal_fence.c
+ atomic_thread_fence.c)
+endif()
+
if(NOT WIN32)
set(GENERIC_SOURCES
${GENERIC_SOURCES}
OpenPOWER on IntegriCloud