projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1b9d80
)
[libc] fix the .yaml files not being tracked
author
Michael Jones
<michaelrj@google.com>
Tue, 7 Dec 2021 22:48:28 +0000
(14:48 -0800)
committer
Michael Jones
<michaelrj@google.com>
Wed, 8 Dec 2021 00:04:46 +0000
(16:04 -0800)
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
libc/cmake/modules/LLVMLibCObjectRules.cmake
patch
|
blob
|
history
diff --git
a/libc/cmake/modules/LLVMLibCObjectRules.cmake
b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index
68dcbc6
..
b1a22ba
100644
(file)
--- 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__