[compiler-rt] r248386 - [CMake] [builtins] Only include the atomic builtins if(APPLE).
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 08:28:44 PDT 2015
Author: cbieneman
Date: Wed Sep 23 10:28:44 2015
New Revision: 248386
URL: http://llvm.org/viewvc/llvm-project?rev=248386&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/lib/builtins/CMakeLists.txt
Modified: compiler-rt/trunk/lib/builtins/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/CMakeLists.txt?rev=248386&r1=248385&r2=248386&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/builtins/CMakeLists.txt Wed Sep 23 10:28:44 2015
@@ -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}
More information about the llvm-commits
mailing list