diff options
author | Siva Chandra <sivachandra@google.com> | 2019-10-15 17:42:28 +0000 |
---|---|---|
committer | Siva Chandra <sivachandra@google.com> | 2019-10-15 17:42:28 +0000 |
commit | c1157d1e77c30f9431e09e599afbb788d5894910 (patch) | |
tree | b97af10bc3b9f6981a8096a34e1711c316bf2cc1 | |
parent | 30cf609548d9379178ef618d9c8790459221ed22 (diff) | |
download | bcm5719-llvm-c1157d1e77c30f9431e09e599afbb788d5894910.tar.gz bcm5719-llvm-c1157d1e77c30f9431e09e599afbb788d5894910.zip |
[libc] Do not add unittests if LLVM_INCLUDE_TESTS is OFF.
Reviewers: nathanchance
Subscribers: mgorny, tschuett, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D68726
llvm-svn: 374925
-rw-r--r-- | libc/cmake/modules/LLVMLibCRules.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/cmake/modules/LLVMLibCRules.cmake b/libc/cmake/modules/LLVMLibCRules.cmake index ea43e51265a..026cd38a3ef 100644 --- 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 |