mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
CheckAtomic.cmake: Put all C++ code inside CHECK_CXX_SOURCE_COMPILES.
llvm-svn: 90685
This commit is contained in:
parent
ec99766e2e
commit
e1f5d048d7
@ -2,11 +2,10 @@
|
|||||||
|
|
||||||
INCLUDE(CheckCXXSourceCompiles)
|
INCLUDE(CheckCXXSourceCompiles)
|
||||||
|
|
||||||
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
|
||||||
int main() {
|
int main() {
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
volatile LONG val = 1;
|
volatile LONG val = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user