forked from OSchip/llvm-project
[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
This commit is contained in:
parent
9c46be2d2f
commit
2a6c13274c
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue