From: Vedant Kumar Date: Tue, 30 Aug 2016 19:57:40 +0000 (+0000) Subject: [test] Add libLTO as a clang test dependency on Darwin X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f545d9d5782e672d3929e0b6f798f7054b3cbbf;p=clang [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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280142 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9d989cdb8e..65087da253 100644 --- a/test/CMakeLists.txt +++ b/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")