[PATCH] D57299: Include lib/Testing/ only if LLVM_INCLUDE_TESTS is enabled

Jiang Yi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 27 03:26:09 PST 2019


jiangyi created this revision.
jiangyi added reviewers: zturner, chandlerc.
Herald added subscribers: llvm-commits, mgorny.

lib/Testing contains functionalities only used by test code. If the users disable LLVM_INCLUDE_TESTS we can shorten the llvm build time.


Repository:
  rL LLVM

https://reviews.llvm.org/D57299

Files:
  lib/CMakeLists.txt


Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -27,5 +27,7 @@
 add_subdirectory(TextAPI)
 add_subdirectory(ToolDrivers)
 add_subdirectory(XRay)
-add_subdirectory(Testing)
+if(LLVM_INCLUDE_TESTS)
+  add_subdirectory(Testing)
+endif()
 add_subdirectory(WindowsManifest)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57299.183751.patch
Type: text/x-patch
Size: 364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190127/fb588f0e/attachment.bin>


More information about the llvm-commits mailing list