r280142 - [test] Add libLTO as a clang test dependency on Darwin

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 30 12:57:41 PDT 2016


Author: vedantk
Date: Tue Aug 30 14:57:40 2016
New Revision: 280142

URL: http://llvm.org/viewvc/llvm-project?rev=280142&view=rev
Log:
[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

Modified:
    cfe/trunk/test/CMakeLists.txt

Modified: cfe/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CMakeLists.txt?rev=280142&r1=280141&r2=280142&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Tue Aug 30 14:57:40 2016
@@ -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")
 




More information about the cfe-commits mailing list