mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Fix libstdc++4.7 test on Android.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -30,6 +30,9 @@ if(NOT LLVM_FORCE_USE_OLD_TOOLCHAIN)
|
|||||||
# libstdc++4.6 that is fixed in libstdc++4.7.
|
# libstdc++4.6 that is fixed in libstdc++4.7.
|
||||||
if(NOT LLVM_ENABLE_LIBCXX)
|
if(NOT LLVM_ENABLE_LIBCXX)
|
||||||
set(CMAKE_REQUIRED_FLAGS "-std=c++0x")
|
set(CMAKE_REQUIRED_FLAGS "-std=c++0x")
|
||||||
|
if (ANDROID)
|
||||||
|
set(CMAKE_REQUIRED_LIBRARIES "atomic")
|
||||||
|
endif()
|
||||||
check_cxx_source_compiles("
|
check_cxx_source_compiles("
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
std::atomic<float> x(0.0f);
|
std::atomic<float> x(0.0f);
|
||||||
|
Reference in New Issue
Block a user