[libc-commits] [PATCH] D68726: [libc] Do not add unittests LLVM_INCLUDE_TESTS is OFF.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Oct 15 10:49:03 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc1157d1e77c3: [libc] Do not add unittests if LLVM_INCLUDE_TESTS is OFF. (authored by sivachandra).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68726/new/

https://reviews.llvm.org/D68726

Files:
  libc/cmake/modules/LLVMLibCRules.cmake


Index: libc/cmake/modules/LLVMLibCRules.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCRules.cmake
+++ libc/cmake/modules/LLVMLibCRules.cmake
@@ -220,6 +220,10 @@
 endfunction(add_entrypoint_library)
 
 function(add_libc_unittest target_name)
+  if(NOT LLVM_INCLUDE_TESTS)
+    return()
+  endif()
+
   cmake_parse_arguments(
     "LIBC_UNITTEST"
     "" # No optional arguments


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68726.225077.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20191015/e730d361/attachment-0001.bin>


More information about the libc-commits mailing list