diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -42,6 +42,8 @@ --print-resource-dir not supported by host compiler") endif() +option(LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" OFF) + option(LLVM_LIBC_ENABLE_LINTING "Enables linting of libc source files" OFF) if(LLVM_LIBC_ENABLE_LINTING) if("clang-tools-extra" IN_LIST LLVM_ENABLE_PROJECTS @@ -56,7 +58,7 @@ To disable linting set LLVM_LIBC_ENABLE_LINTING to OFF (pass -DLLVM_LIBC_ENABLE_LINTING=OFF to cmake).") endif() -else() +elseif(LLVM_LIBC_FULL_BUILD) message(WARNING " Linting for libc is currently disabled. @@ -64,8 +66,6 @@ (pass -DLLVM_LIBC_ENABLE_LINTING=ON to cmake).") endif() -option(LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" OFF) - include(CMakeParseArguments) include(LLVMLibCRules) include(LLVMLibCCheckCpuFeatures)