Skip to content

Commit 8a82924

Browse files
author
git apple-llvm automerger
committed
Merge commit '69ee6a0edd3b' from llvm.org/release/21.x into stable/21.x
2 parents f829eb7 + 69ee6a0 commit 8a82924

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -425,17 +425,11 @@ function(add_libclc_builtin_set)
425425
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
426426
endif()
427427

428-
if(CMAKE_HOST_UNIX OR LLVM_USE_SYMLINKS)
429-
set(LIBCLC_LINK_OR_COPY create_symlink)
430-
else()
431-
set(LIBCLC_LINK_OR_COPY copy)
432-
endif()
433-
434-
foreach( a IN LISTS ARG_ALIASES )
428+
foreach( a ${ARG_ALIASES} )
435429
set( alias_suffix "${a}-${ARG_TRIPLE}.bc" )
436430
add_custom_command(
437431
OUTPUT ${LIBCLC_OUTPUT_LIBRARY_DIR}/${alias_suffix}
438-
COMMAND ${CMAKE_COMMAND} -E ${LIBCLC_LINK_OR_COPY} ${libclc_builtins_lib} ${LIBCLC_OUTPUT_LIBRARY_DIR}/${alias_suffix}
432+
COMMAND ${CMAKE_COMMAND} -E create_symlink ${libclc_builtins_lib} ${LIBCLC_OUTPUT_LIBRARY_DIR}/${alias_suffix}
439433
DEPENDS prepare-${obj_suffix}
440434
)
441435
add_custom_target( alias-${alias_suffix} ALL

0 commit comments

Comments
 (0)