[libc-commits] [libc] 2b19788 - [libc] fix the .yaml files not being tracked
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Dec 7 16:04:51 PST 2021
Author: Michael Jones
Date: 2021-12-07T16:04:46-08:00
New Revision: 2b197888e0e31d53b943d50c4faa5d52afabbbe4
URL: https://github.com/llvm/llvm-project/commit/2b197888e0e31d53b943d50c4faa5d52afabbbe4
DIFF: https://github.com/llvm/llvm-project/commit/2b197888e0e31d53b943d50c4faa5d52afabbbe4.diff
LOG: [libc] fix the .yaml files not being tracked
adds the .yaml files clang-tidy generates as byproducts, which means
that they will be updated properly and cleaned by `ninja -t clean`
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D115290
Added:
Modified:
libc/cmake/modules/LLVMLibCObjectRules.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index 68dcbc6851624..b1a22ba321ac0 100644
--- a/libc/cmake/modules/LLVMLibCObjectRules.cmake
+++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -249,6 +249,7 @@ function(add_entrypoint_object target_name)
COMMENT "Linting... ${target_name}"
DEPENDS clang-tidy ${internal_target_name} ${ADD_ENTRYPOINT_OBJ_SRCS}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${target_name}.yaml
)
add_custom_target(${fq_target_name}.__lint__
More information about the libc-commits
mailing list