[libc-commits] [PATCH] D78349: [libc] Add spec/*.td as dependencies to add_gen_header
Alex Brachet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Apr 17 10:15:40 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd9e96b6a0267: [libc] Add spec/*.td as dependencies to add_gen_header (authored by abrachet).
Herald added a project: libc-project.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78349/new/
https://reviews.llvm.org/D78349
Files:
libc/cmake/modules/LLVMLibCRules.cmake
Index: libc/cmake/modules/LLVMLibCRules.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCRules.cmake
+++ libc/cmake/modules/LLVMLibCRules.cmake
@@ -84,11 +84,17 @@
set(gen_hdr_script "${LIBC_BUILD_SCRIPTS_DIR}/gen_hdr.py")
+ file(GLOB td_includes ${LIBC_SOURCE_DIR}/spec/*.td)
+
add_custom_command(
OUTPUT ${out_file}
- COMMAND $<TARGET_FILE:libc-hdrgen> -o ${out_file} --header ${ADD_GEN_HDR_GEN_HDR} --def ${in_file} ${replacement_params} -I ${LIBC_SOURCE_DIR} ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
+ COMMAND $<TARGET_FILE:libc-hdrgen> -o ${out_file} --header ${ADD_GEN_HDR_GEN_HDR}
+ --def ${in_file} ${replacement_params} -I ${LIBC_SOURCE_DIR}
+ ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- DEPENDS ${in_file} ${fq_data_files} ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td libc-hdrgen
+ DEPENDS ${in_file} ${fq_data_files} ${td_includes}
+ ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td libc-hdrgen
)
get_fq_target_name(${target_name} fq_target_name)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78349.258363.patch
Type: text/x-patch
Size: 1164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200417/c293f5d3/attachment-0001.bin>
More information about the libc-commits
mailing list