From: Will Schmidt Date: Wed, 5 Nov 2014 16:35:23 +0000 (+0000) Subject: When run on a ppc64le based platform, the check-sanitizer build looks for X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=626963187bc0652db46cc3c535a004aa4aa753a0;p=platform%2Fupstream%2Fllvm.git When run on a ppc64le based platform, the check-sanitizer build looks for objects with the powerpc64le name. i.e. asan-powerpc64le.a This change allows those objects to be built. Differential Revision: http://reviews.llvm.org/D6043 llvm-svn: 221356 --- diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index 0b722c3..083bc85 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/cmake/config-ix.cmake @@ -134,6 +134,7 @@ else() test_target_arch(i386 ${TARGET_32_BIT_CFLAGS}) elseif("${LLVM_NATIVE_ARCH}" STREQUAL "PowerPC") test_target_arch(powerpc64 ${TARGET_64_BIT_CFLAGS}) + test_target_arch(powerpc64le ${TARGET_64_BIT_CFLAGS}) elseif("${LLVM_NATIVE_ARCH}" STREQUAL "Mips") if("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "mipsel|mips64el") # regex for mipsel, mips64el @@ -169,9 +170,9 @@ endfunction() # Arhcitectures supported by compiler-rt libraries. filter_available_targets(SANITIZER_COMMON_SUPPORTED_ARCH - x86_64 i386 i686 powerpc64 arm aarch64 mips mips64 mipsel mips64el) + x86_64 i386 i686 powerpc64 powerpc64le arm aarch64 mips mips64 mipsel mips64el) filter_available_targets(ASAN_SUPPORTED_ARCH - x86_64 i386 i686 powerpc64 arm mips mipsel) + x86_64 i386 i686 powerpc64 powerpc64le arm mips mipsel) filter_available_targets(DFSAN_SUPPORTED_ARCH x86_64) filter_available_targets(LSAN_SUPPORTED_ARCH x86_64) # LSan common files should be available on all architectures supported