File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -425,11 +425,17 @@ function(add_libclc_builtin_set)
425
425
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
426
426
endif ()
427
427
428
- foreach ( a ${ARG_ALIASES} )
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 )
429
435
set ( alias_suffix "${a} -${ARG_TRIPLE} .bc" )
430
436
add_custom_command (
431
437
OUTPUT ${LIBCLC_OUTPUT_LIBRARY_DIR} /${alias_suffix}
432
- COMMAND ${CMAKE_COMMAND} -E create_symlink ${libclc_builtins_lib} ${LIBCLC_OUTPUT_LIBRARY_DIR} /${alias_suffix}
438
+ COMMAND ${CMAKE_COMMAND} -E ${LIBCLC_LINK_OR_COPY} ${libclc_builtins_lib} ${LIBCLC_OUTPUT_LIBRARY_DIR} /${alias_suffix}
433
439
DEPENDS prepare-${obj_suffix}
434
440
)
435
441
add_custom_target ( alias-${alias_suffix} ALL
You can’t perform that action at this time.
0 commit comments