diff options
-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 |