diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-02-18 07:52:40 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-02-18 07:52:40 +0000 |
commit | 0571186b725b1bbd13d80ccbf9400d7d4c5b3593 (patch) | |
tree | 064829a3906068d58e823f0d11170d7749488800 /CMakeLists.txt | |
parent | 7b72272d3a2f635c9d75ee46817d35a6d65afcd8 (diff) |
[CMake] Simplify setting compile flag disabling RTTI
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 07186b30f..58fb84cda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,12 +144,6 @@ pythonize_bool(COMPILER_RT_DEBUG) #================================ include(config-ix) -macro(append_if list condition var) - if (${condition}) - list(APPEND ${list} ${var}) - endif() -endmacro() - # Provide some common commmandline flags for Sanitizer runtimes. append_if(SANITIZER_COMMON_CFLAGS COMPILER_RT_HAS_FPIC_FLAG -fPIC) append_if(SANITIZER_COMMON_CFLAGS COMPILER_RT_HAS_FNO_BUILTIN_FLAG -fno-builtin) @@ -229,17 +223,6 @@ filter_available_targets(UBSAN_SUPPORTED_ARCH x86_64 i386) add_subdirectory(include) -# When ANDROID, we build tests with the host compiler (i.e. CMAKE_C_COMPILER), -# and run tests with tools from the host toolchain. -if (NOT ANDROID) - set(SANITIZER_COMMON_LIT_TEST_DEPS - clang clang-headers FileCheck count not llvm-nm llvm-symbolizer - compiler-rt-headers) - if(UNIX) - list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS SanitizerLintCheck) - endif() -endif() - set(COMPILER_RT_LIBCXX_PATH ${LLVM_MAIN_SRC_DIR}/projects/libcxx) if(EXISTS ${COMPILER_RT_LIBCXX_PATH}/) set(COMPILER_RT_HAS_LIBCXX_SOURCES TRUE) |