[libc-commits] [libc] [libc] Revamp hdrgen command line and build integration (PR #121522)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Mon Jan 6 11:43:26 PST 2025
================
@@ -97,8 +94,11 @@ function(add_gen_header target_name)
set(absolute_path ${CMAKE_CURRENT_SOURCE_DIR}/${ADD_GEN_HDR_GEN_HDR})
file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_SOURCE_DIR} ${absolute_path})
set(out_file ${LIBC_INCLUDE_DIR}/${relative_path})
+ set(dep_file "${out_file}.d")
+ file(RELATIVE_PATH rel_out_file ${CMAKE_BINARY_DIR} ${out_file})
----------------
petrhosek wrote:
CMake uses absolute paths everywhere so there's no point in relativizing these.
https://github.com/llvm/llvm-project/pull/121522
More information about the libc-commits
mailing list