From: Greg Fitzgerald Date: Tue, 3 Jun 2014 04:29:46 +0000 (+0000) Subject: Fix Android build after r210053 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=796fba4cd942fea7b1670f468082fe8e182b4abd;p=platform%2Fupstream%2Fllvm.git Fix Android build after r210053 llvm-svn: 210069 --- diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index 5bede24..3b52403 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -216,21 +216,23 @@ macro(test_target_arch arch) endif() endmacro() -if("${LLVM_NATIVE_ARCH}" STREQUAL "X86") - if (NOT MSVC) - test_target_arch(x86_64 ${TARGET_64_BIT_CFLAGS}) - endif() - test_target_arch(i386 ${TARGET_32_BIT_CFLAGS}) -elseif("${LLVM_NATIVE_ARCH}" STREQUAL "PowerPC") - test_target_arch(powerpc64 ${TARGET_64_BIT_CFLAGS}) -endif() - -# Build ARM libraries if we are configured to test on ARM if(ANDROID) test_target_arch(arm_android "") -elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "arm|aarch64") - test_target_arch(arm "-march=armv7-a") - test_target_arch(aarch64 "-march=armv8-a") +else() + if("${LLVM_NATIVE_ARCH}" STREQUAL "X86") + if (NOT MSVC) + test_target_arch(x86_64 ${TARGET_64_BIT_CFLAGS}) + endif() + test_target_arch(i386 ${TARGET_32_BIT_CFLAGS}) + elseif("${LLVM_NATIVE_ARCH}" STREQUAL "PowerPC") + test_target_arch(powerpc64 ${TARGET_64_BIT_CFLAGS}) + endif() + + # Build ARM libraries if we are configured to test on ARM + if("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "arm|aarch64") + test_target_arch(arm "-march=armv7-a") + test_target_arch(aarch64 "-march=armv8-a") + endif() endif() # We support running instrumented tests when we're not cross compiling