Skip to content

Commit 1ebfe17

Browse files
author
Martin Wehking
committed
Fix tool names
1 parent 5a29d6a commit 1ebfe17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ function(process_bc out_file)
237237
"DEPENDENCIES"
238238
${ARGN})
239239
add_custom_command( OUTPUT ${ARG_LIB_TGT}.bc
240-
COMMAND libclc::opt -o ${ARG_LIB_TGT}.bc
240+
COMMAND ${opt_exe} -o ${ARG_LIB_TGT}.bc
241241
${ARG_IN_FILE}
242-
DEPENDS libclc::opt ${ARG_IN_FILE} ${ARG_DEPENDENCIES}
242+
DEPENDS ${opt_target} ${ARG_IN_FILE} ${ARG_DEPENDENCIES}
243243
)
244244
add_custom_target( ${ARG_LIB_TGT}
245245
ALL DEPENDS ${ARG_LIB_TGT}.bc
@@ -252,9 +252,9 @@ function(process_bc out_file)
252252

253253
# Add prepare target
254254
add_custom_command( OUTPUT ${ARG_OUT_DIR}/${out_file}
255-
COMMAND prepare_builtins -o ${ARG_OUT_DIR}/${out_file}
255+
COMMAND ${prepare_builtins_exe} -o ${ARG_OUT_DIR}/${out_file}
256256
${builtins_opt_lib}
257-
DEPENDS ${builtins_opt_lib} ${ARG_LIB_TGT} prepare_builtins )
257+
DEPENDS ${builtins_opt_lib} ${ARG_LIB_TGT} ${prepare_builtins_target} )
258258
add_custom_target( prepare-${out_file} ALL
259259
DEPENDS ${ARG_OUT_DIR}/${out_file}
260260
)

0 commit comments

Comments
 (0)