[libclc] [libclc] Make library output directories explicit (PR #146833)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 3 02:56:50 PDT 2025
================
@@ -120,14 +120,15 @@ function(link_bc)
endif()
add_custom_command(
- OUTPUT ${ARG_TARGET}.bc
- COMMAND ${llvm-link_exe} ${link_flags} -o ${ARG_TARGET}.bc ${LINK_INPUT_ARG}
+ OUTPUT ${LIBCLC_ARCH_OBJFILE_DIR}/${ARG_TARGET}.bc
+ COMMAND ${llvm-link_exe} ${link_flags} -o ${LIBCLC_ARCH_OBJFILE_DIR}/${ARG_TARGET}.bc ${LINK_INPUT_ARG}
DEPENDS ${llvm-link_target} ${ARG_DEPENDENCIES} ${ARG_INPUTS} ${RSP_FILE}
+ WORKING_DIRECTORY ${LIBCLC_ARCH_OBJFILE_DIR}
----------------
wenju-he wrote:
do we need to set WORKING_DIRECTORY? IIUC all the command parameters and output is full path.
https://github.com/llvm/llvm-project/pull/146833
More information about the cfe-commits
mailing list