diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-01-16 20:36:27 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-01-16 20:36:27 +0000 |
commit | 34b376a895c400afdd206f9cbe785e8e4dc0e16c (patch) | |
tree | bd92afa1b2282cda2587fc8fda67ded696464e48 /test/cfi | |
parent | 79374b3a6016771e13be782c070430246d433ff3 (diff) | |
download | compiler-rt-34b376a895c400afdd206f9cbe785e8e4dc0e16c.tar.gz |
compiler-rt tests: Unbreak cmake with LLVM_ENABLE_PIC=OFF on mac
The LTO target doesn't exist with LLVM_ENABLE_PIC turned off.
Differential Revision: https://reviews.llvm.org/D56800
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/cfi')
-rw-r--r-- | test/cfi/CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/test/cfi/CMakeLists.txt b/test/cfi/CMakeLists.txt index 4dbbf1759..d99213632 100644 --- a/test/cfi/CMakeLists.txt +++ b/test/cfi/CMakeLists.txt @@ -74,15 +74,17 @@ if(NOT COMPILER_RT_STANDALONE_BUILD) opt sanstats ) - if(LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR) - list(APPEND CFI_TEST_DEPS - LLVMgold - ) - endif() - if(APPLE) - list(APPEND CFI_TEST_DEPS - LTO - ) + if(LLVM_ENABLE_PIC) + if(LLVM_BINUTILS_INCDIR) + list(APPEND CFI_TEST_DEPS + LLVMgold + ) + endif() + if(APPLE) + list(APPEND CFI_TEST_DEPS + LTO + ) + endif() endif() if(NOT APPLE AND COMPILER_RT_HAS_LLD) list(APPEND CFI_TEST_DEPS |