[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
Wed Oct 9 13:37:55 PDT 2019
sivachandra created this revision.
sivachandra added a reviewer: nathanchance.
Herald added subscribers: libc-commits, tschuett, mgorny.
Herald added a project: libc-project.
Repository:
rG LLVM Github Monorepo
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.224144.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20191009/1d2a2160/attachment-0001.bin>
More information about the libc-commits
mailing list