[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
This commit is contained in:
Michael Jones 2021-12-07 14:48:28 -08:00
parent e1b9d80532
commit 2b197888e0
1 changed files with 1 additions and 0 deletions

View File

@ -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__