Skip to content

Commit 35fea88

Browse files
author
git apple-llvm automerger
committed
Merge commit '2c980310f67c' from llvm.org/main into next
2 parents 1bcd49d + 2c98031 commit 35fea88

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,11 @@ function(add_libclc_builtin_set)
355355
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${obj_suffix} DESTINATION "${CMAKE_INSTALL_DATADIR}/clc" )
356356
foreach( a ${ARG_ALIASES} )
357357
set( alias_suffix "${a}-${ARG_TRIPLE}.bc" )
358-
add_custom_command(
359-
OUTPUT ${alias_suffix}
358+
add_custom_target( ${alias_suffix} ALL
360359
COMMAND ${CMAKE_COMMAND} -E create_symlink ${obj_suffix} ${alias_suffix}
361360
DEPENDS prepare-${obj_suffix} )
362-
add_custom_target( alias-${alias_suffix} ALL DEPENDS ${alias_suffix} )
363-
set_target_properties( alias-${alias_suffix} PROPERTIES FOLDER "libclc/Device IR/Aliases" )
364-
install( FILES ${alias_suffix} DESTINATION "${CMAKE_INSTALL_DATADIR}/clc" )
361+
set_target_properties( "${alias_suffix}" PROPERTIES FOLDER "libclc/Device IR/Aliases" )
362+
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${alias_suffix} DESTINATION "${CMAKE_INSTALL_DATADIR}/clc" )
365363
endforeach( a )
366364
endfunction(add_libclc_builtin_set)
367365

0 commit comments

Comments
 (0)