diff options
author | Renato Golin <renato.golin@linaro.org> | 2014-01-31 14:25:58 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2014-01-31 14:25:58 +0000 |
commit | 01b385f92799e694046b279e4a1814d0bef02ca9 (patch) | |
tree | 078ee87e8e4cb6969325620d5ee0d35c8f92bb73 /CMakeLists.txt | |
parent | ef3b5f76d7eaf4a8051293f834725713efb69332 (diff) |
Enable compilation of RT on ARM
Adding the ARM RT sources to the CMake files, and enabling some
sanitizers to also build on ARM. This is far from supported or
production quality, but enabling it to build will get us errors
that we can actually fix.
Having said that, the Compiler-RT and the Asan libraries are
know to work on some variations of ARM.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7772c789a..455f33c7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,8 @@ if("${LLVM_NATIVE_ARCH}" STREQUAL "X86") test_target_arch(i386 ${TARGET_32_BIT_CFLAGS}) elseif("${LLVM_NATIVE_ARCH}" STREQUAL "PowerPC") test_target_arch(powerpc64 ${TARGET_64_BIT_CFLAGS}) +elseif("${LLVM_NATIVE_ARCH}" STREQUAL "ARM") + test_target_arch(arm "") endif() # We only support running instrumented tests when we're not cross compiling @@ -212,7 +214,7 @@ endif() # Architectures supported by Sanitizer runtimes. Specific sanitizers may # support only subset of these (e.g. TSan works on x86_64 only). filter_available_targets(SANITIZER_COMMON_SUPPORTED_ARCH - x86_64 i386 powerpc64) + x86_64 i386 powerpc64 arm) add_subdirectory(include) |