diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -161,7 +161,9 @@ add_subdirectory(fuzzing) endif() -add_subdirectory(benchmarks) +if(LLVM_INCLUDE_BENCHMARKS) + add_subdirectory(benchmarks) +endif() if (LIBC_INCLUDE_DOCS) add_subdirectory(docs)