From 2bcf59ef061c95b269d405f0bc99a6aae34937ab Mon Sep 17 00:00:00 2001 From: Steffen Larsen Date: Tue, 27 Apr 2021 08:26:02 +0100 Subject: [PATCH] [SYCL-PTX] Fix libclc dependencies Changes the file-level dependency in the prepare step to a target-level dependency, ensuring the custom opt command has been run before the prepare step. Signed-off-by: Steffen Larsen --- libclc/cmake/modules/AddLibclc.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclc/cmake/modules/AddLibclc.cmake b/libclc/cmake/modules/AddLibclc.cmake index 518ebe3500471..c30c264d5f242 100644 --- a/libclc/cmake/modules/AddLibclc.cmake +++ b/libclc/cmake/modules/AddLibclc.cmake @@ -91,7 +91,7 @@ macro(add_libclc_builtin_set arch_suffix) COMMAND prepare_builtins -o "${builtins_obj_path}" "$" - DEPENDS ${builtins_opt_path} + DEPENDS "opt.${obj_suffix}" prepare_builtins ) add_custom_target( "prepare-${obj_suffix}" ALL DEPENDS "${builtins_obj_path}" )