Skip to content

Commit 952e8c1

Browse files
committed
remove -as target, add back to DEPENDS of builtins_comp_lib_tgt
1 parent aed94cf commit 952e8c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ function(compile_to_bc)
7878
COMMAND ${llvm-as_exe} -o ${ARG_OUTPUT} ${ARG_OUTPUT}${TMP_SUFFIX}
7979
DEPENDS ${llvm-as_target} ${ARG_OUTPUT}${TMP_SUFFIX}
8080
)
81-
add_custom_target( ${ARG_TARGET}-as DEPENDS ${ARG_OUTPUT} )
8281
endif()
8382
endfunction()
8483

@@ -295,7 +294,6 @@ function(add_libclc_builtin_set)
295294
get_filename_component( file_ext ${file} EXT )
296295
if( ${file_ext} STREQUAL ".ll" )
297296
list( APPEND bytecode_ir_files ${output_file} )
298-
list( APPEND compile_tgts ${tgt}-as )
299297
else()
300298
list( APPEND bytecode_files ${output_file} )
301299
endif()
@@ -310,7 +308,7 @@ function(add_libclc_builtin_set)
310308

311309
set( builtins_comp_lib_tgt builtins.comp.${ARG_ARCH_SUFFIX} )
312310
add_custom_target( ${builtins_comp_lib_tgt}
313-
DEPENDS ${compile_tgts}
311+
DEPENDS ${bytecode_files} ${compile_tgts}
314312
)
315313
set_target_properties( ${builtins_comp_lib_tgt} PROPERTIES FOLDER "libclc/Device IR/Comp" )
316314

0 commit comments

Comments
 (0)