From 139756308aa96dc4d71967ef1cf3963bccbb57cd Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Tue, 30 Aug 2016 19:57:40 +0000 Subject: [PATCH] [test] Add libLTO as a clang test dependency on Darwin Running 'check-clang' on a stock checkout of llvm+clang doesn't work on Darwin, because test/Driver/darwin-ld-lto.c can't find libLTO.dylib. Add libLTO as a clang test dependency on Darwin to fix the problem. Note: We don't have this issue with check-all because libLTO is in the test-depends target. Differential Revision: https://reviews.llvm.org/D24042 llvm-svn: 280142 --- clang/test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt index 9d989cd..65087da 100644 --- a/clang/test/CMakeLists.txt +++ b/clang/test/CMakeLists.txt @@ -82,6 +82,10 @@ if( NOT CLANG_BUILT_STANDALONE ) endif() endif() +if(APPLE) + list(APPEND CLANG_TEST_DEPS LTO) +endif() + add_custom_target(clang-test-depends DEPENDS ${CLANG_TEST_DEPS}) set_target_properties(clang-test-depends PROPERTIES FOLDER "Clang tests") -- 2.7.4