Skip to content

Commit

Permalink
[libclc] Fix spirv build dependencies
Browse files Browse the repository at this point in the history
These were accidentally broken in 61efea7.

Thanks to @mgorny and @rjodinchr for spotting this.
  • Loading branch information
frasercrmck committed Apr 8, 2024
1 parent 8ccf1c1 commit f46f646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
if( ${ARCH} STREQUAL "spirv" OR ${ARCH} STREQUAL "spirv64" )
set( spv_suffix ${arch_suffix}.spv )
add_custom_command( OUTPUT "${spv_suffix}"
COMMAND ${LLVM_SPIRV} ${spvflags} -o "${spv_suffix}" ${builtins_opt_lib_tgt}
COMMAND ${LLVM_SPIRV} ${spvflags} -o "${spv_suffix}" ${builtins_link_lib_tgt}
DEPENDS ${builtins_link_lib_tgt} )
add_custom_target( "prepare-${spv_suffix}" ALL DEPENDS "${spv_suffix}" )
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${spv_suffix}
Expand Down

0 comments on commit f46f646

Please sign in to comment.