Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2021-12-08 01:48:28 +0300
committerMichael Jones <michaelrj@google.com>2021-12-08 03:04:46 +0300
commit2b197888e0e31d53b943d50c4faa5d52afabbbe4 (patch)
tree6a487366833bc9500fb153b58a49da3774e447c1 /libc/cmake/modules/LLVMLibCObjectRules.cmake
parente1b9d805325ba7fa68a6122a233be88bb79bf8ac (diff)
[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
Diffstat (limited to 'libc/cmake/modules/LLVMLibCObjectRules.cmake')
-rw-r--r--libc/cmake/modules/LLVMLibCObjectRules.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index 68dcbc685162..b1a22ba321ac 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__