Skip to content

Commit b439140

Browse files
committed
[libclc] Fix more spirv build dependencies
The last fix was incomplete.
1 parent 4a1c53f commit b439140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
332332
if( ${ARCH} STREQUAL "spirv" OR ${ARCH} STREQUAL "spirv64" )
333333
set( spv_suffix ${arch_suffix}.spv )
334334
add_custom_command( OUTPUT "${spv_suffix}"
335-
COMMAND ${LLVM_SPIRV} ${spvflags} -o "${spv_suffix}" ${builtins_link_lib_tgt}
335+
COMMAND ${LLVM_SPIRV} ${spvflags} -o "${spv_suffix}" $<TARGET_FILE:${builtins_link_lib_tgt}>
336336
DEPENDS ${builtins_link_lib_tgt} )
337337
add_custom_target( "prepare-${spv_suffix}" ALL DEPENDS "${spv_suffix}" )
338338
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${spv_suffix}

0 commit comments

Comments
 (0)