projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[x86] Allow address-size overrides for STOS[BWLQ] (PR9385)
[oota-llvm.git]
/
cmake
/
modules
/
CheckAtomic.cmake
diff --git
a/cmake/modules/CheckAtomic.cmake
b/cmake/modules/CheckAtomic.cmake
index 6c4da66bfadea3a3e5d84af58d53377c93b4dc6c..0d63a82b97a06090085764e806670ac207eac476 100644
(file)
--- a/
cmake/modules/CheckAtomic.cmake
+++ b/
cmake/modules/CheckAtomic.cmake
@@
-2,11
+2,10
@@
INCLUDE(CheckCXXSourceCompiles)
INCLUDE(CheckCXXSourceCompiles)
+CHECK_CXX_SOURCE_COMPILES("
#ifdef _MSC_VER
#include <windows.h>
#endif
#ifdef _MSC_VER
#include <windows.h>
#endif
-
-CHECK_CXX_SOURCE_COMPILES("
int main() {
#ifdef _MSC_VER
volatile LONG val = 1;
int main() {
#ifdef _MSC_VER
volatile LONG val = 1;
@@
-23,8
+22,8
@@
int main() {
#endif
return 0;
}
#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()
message(STATUS "Warning: LLVM will be built thread-unsafe because atomic builtins are missing")
endif()