[PATCH] D45409: [cmake] Include LLVMTestingSupport when doing stand-alone build

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 9 10:13:39 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE329594: [cmake] Include LLVMTestingSupport when doing stand-alone build (authored by mgorny, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D45409

Files:
  unittests/CMakeLists.txt


Index: unittests/CMakeLists.txt
===================================================================
--- unittests/CMakeLists.txt
+++ unittests/CMakeLists.txt
@@ -5,6 +5,15 @@
   add_unittest(ExtraToolsUnitTests ${test_dirname} ${ARGN})
 endfunction()
 
+if(CLANG_BUILT_STANDALONE)
+  # LLVMTestingSupport library is needed for clangd tests.
+  if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
+      AND NOT TARGET LLVMTestingSupport)
+    add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support
+      lib/Testing/Support)
+  endif()
+endif()
+
 add_subdirectory(change-namespace)
 add_subdirectory(clang-apply-replacements)
 add_subdirectory(clang-move)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45409.141677.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180409/e9850d49/attachment-0001.bin>


More information about the cfe-commits mailing list