Author: sas Date: Mon Nov 6 11:25:33 2017 New Revision: 317501 URL: http://llvm.org/viewvc/llvm-project?rev=317501&view=rev Log: Add a dependency from check-lldb on lld
Summary: This is required when using the in-tree clang for building tests, because -fuse-ld=lld is used by default. Subscribers: mgorny Differential Revision: https://reviews.llvm.org/D39689 Modified: lldb/trunk/test/CMakeLists.txt Modified: lldb/trunk/test/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/CMakeLists.txt?rev=317501&r1=317500&r2=317501&view=diff ============================================================================== --- lldb/trunk/test/CMakeLists.txt (original) +++ lldb/trunk/test/CMakeLists.txt Mon Nov 6 11:25:33 2017 @@ -115,6 +115,15 @@ if (TARGET clang) add_dependencies(check-lldb clang) endif() +# LLD is required to link test executables on Windows. +if (CMAKE_SYSTEM_NAME MATCHES "Windows") + if (TARGET lld) + add_dependencies(check-lldb lld) + else () + message(WARNING "lld required to test LLDB on Windows") + endif () +endif () + add_custom_target(lldb-test-depends DEPENDS ${LLDB_TEST_DEPENDS}) # This will add LLDB's test dependencies to the depenednecies for check-all and # include them in the test-depends target. _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits