[libc-commits] [libc] a1762f9 - [libc] Don't configure test and fuzzer when -DLLVM_INCLUDE_TESTS=OFF

Alex Brachet via libc-commits libc-commits at lists.llvm.org
Sun Mar 22 22:50:26 PDT 2020


Author: Alex Brachet
Date: 2020-03-23T01:50:16-04:00
New Revision: a1762f9ceb9549b781b7418c7dbe23fe620648f6

URL: https://github.com/llvm/llvm-project/commit/a1762f9ceb9549b781b7418c7dbe23fe620648f6
DIFF: https://github.com/llvm/llvm-project/commit/a1762f9ceb9549b781b7418c7dbe23fe620648f6.diff

LOG: [libc] Don't configure test and fuzzer when -DLLVM_INCLUDE_TESTS=OFF

Summary:  Fixes problem reported in D74397#1935863

Reviewers: nathanchance, gchatelet, sivachandra, MaskRay

Reviewed By: sivachandra, MaskRay

Subscribers: mgorny, MaskRay, tschuett

Differential Revision: https://reviews.llvm.org/D76577

Added: 
    

Modified: 
    libc/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index 4ee4d7dca573..40c7f707872b 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -32,5 +32,7 @@ add_subdirectory(utils)
 # and libraries potentially draw from the components present in all
 # of the other directories.
 add_subdirectory(lib)
-add_subdirectory(test)
-add_subdirectory(fuzzing)
+if(LLVM_INCLUDE_TESTS)
+  add_subdirectory(test)
+  add_subdirectory(fuzzing)
+endif()


        


More information about the libc-commits mailing list