projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30cf609
)
[libc] Do not add unittests if LLVM_INCLUDE_TESTS is OFF.
author
Siva Chandra
<sivachandra@google.com>
Tue, 15 Oct 2019 17:42:28 +0000
(17:42 +0000)
committer
Siva Chandra
<sivachandra@google.com>
Tue, 15 Oct 2019 17:42:28 +0000
(17:42 +0000)
Reviewers: nathanchance
Subscribers: mgorny, tschuett, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D68726
llvm-svn: 374925
libc/cmake/modules/LLVMLibCRules.cmake
patch
|
blob
|
history
diff --git
a/libc/cmake/modules/LLVMLibCRules.cmake
b/libc/cmake/modules/LLVMLibCRules.cmake
index
ea43e51
..
026cd38
100644
(file)
--- a/
libc/cmake/modules/LLVMLibCRules.cmake
+++ b/
libc/cmake/modules/LLVMLibCRules.cmake
@@
-220,6
+220,10
@@
function(add_entrypoint_library target_name)
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