diff options
author | Eric Christopher <echristo@apple.com> | 2011-09-19 20:43:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-09-19 20:43:23 +0000 |
commit | 627445f3e661629d6d5f82f2dbf17be140a93c7d (patch) | |
tree | 4c19adb37aa06cf00dd3ca684fbc98a35a38196a /cmake | |
parent | bc80e94865d139a60534ac40cbf12f2d214dad56 (diff) |
Rename LLVM_MULTITHREADED define and fix build without threads.
Patch by Arrowdodger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 2 | ||||
-rw-r--r-- | cmake/modules/CheckAtomic.cmake | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 805ab98775..0381dbf496 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -272,7 +272,7 @@ else() unset(HAVE_FFI_CALL CACHE) endif( LLVM_ENABLE_FFI ) -# Define LLVM_MULTITHREADED if gcc atomic builtins exists. +# Define LLVM_HAS_ATOMICS if gcc or MSVC atomic builtins are supported. include(CheckAtomic) if( LLVM_ENABLE_PIC ) diff --git a/cmake/modules/CheckAtomic.cmake b/cmake/modules/CheckAtomic.cmake index f40ff4dfbd..0d63a82b97 100644 --- a/cmake/modules/CheckAtomic.cmake +++ b/cmake/modules/CheckAtomic.cmake @@ -22,8 +22,8 @@ int main() { #endif return 0; } -" LLVM_MULTITHREADED) +" LLVM_HAS_ATOMICS) -if( NOT LLVM_MULTITHREADED ) +if( NOT LLVM_HAS_ATOMICS ) message(STATUS "Warning: LLVM will be built thread-unsafe because atomic builtins are missing") endif() |