Skip to content

Commit a1762f9

Browse files
committed
[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
1 parent 2ec59a0 commit a1762f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libc/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ add_subdirectory(utils)
3232
# and libraries potentially draw from the components present in all
3333
# of the other directories.
3434
add_subdirectory(lib)
35-
add_subdirectory(test)
36-
add_subdirectory(fuzzing)
35+
if(LLVM_INCLUDE_TESTS)
36+
add_subdirectory(test)
37+
add_subdirectory(fuzzing)
38+
endif()

0 commit comments

Comments
 (0)