summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/cfi/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/test/cfi/CMakeLists.txt b/compiler-rt/test/cfi/CMakeLists.txt
index 5750bd8a4ba..625e3ff11c0 100644
--- a/compiler-rt/test/cfi/CMakeLists.txt
+++ b/compiler-rt/test/cfi/CMakeLists.txt
@@ -15,6 +15,11 @@ if(NOT COMPILER_RT_STANDALONE_BUILD)
LLVMgold
)
endif()
+ if(APPLE)
+ list(APPEND CFI_TEST_DEPS
+ LTO
+ )
+ endif()
endif()
add_lit_testsuite(check-cfi "Running the cfi regression tests"
OpenPOWER on IntegriCloud