unstick r374925

Revision 374925

Date:
2019/10/15 17:42:28
Author:
sivachandra
Revision Log:
[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
Files:

Legend:

 
Added
 
Removed
 
Modified
  • libc/trunk/cmake/modules/LLVMLibCRules.cmake

     
    220 220 endfunction(add_entrypoint_library)
    221 221
    222 222 function(add_libc_unittest target_name)
    223 if(NOT LLVM_INCLUDE_TESTS)
    224 return()
    225 endif()
    226
    223 227 cmake_parse_arguments(
    224 228 "LIBC_UNITTEST"
    225 229 "" # No optional arguments