[libc-commits] [PATCH] D101609: [libc] warns about missing linting only in full build mode
Guillaume Chatelet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Apr 30 02:40:52 PDT 2021
gchatelet created this revision.
gchatelet added a reviewer: sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
gchatelet requested review of this revision.
This is a follow up on https://reviews.llvm.org/D101528
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D101609
Files:
libc/CMakeLists.txt
Index: libc/CMakeLists.txt
===================================================================
--- libc/CMakeLists.txt
+++ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101609.341817.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210430/d57671cc/attachment.bin>
More information about the libc-commits
mailing list