[libclc] 222e795 - [libclc] Fix target dependency
Fraser Cormack via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 4 03:08:11 PDT 2025
Author: Fraser Cormack
Date: 2025-07-04T11:08:00+01:00
New Revision: 222e795347c14afce49df1540926f3a1ae493de4
URL: https://github.com/llvm/llvm-project/commit/222e795347c14afce49df1540926f3a1ae493de4
DIFF: https://github.com/llvm/llvm-project/commit/222e795347c14afce49df1540926f3a1ae493de4.diff
LOG: [libclc] Fix target dependency
The prepare target was depending on the output of a custom command, but
wasn't the full path to that file. This tripped up CMake if the file was
removed as it didn't know how to rebuild that file.
Added:
Modified:
libclc/cmake/modules/AddLibclc.cmake
Removed:
################################################################################
diff --git a/libclc/cmake/modules/AddLibclc.cmake b/libclc/cmake/modules/AddLibclc.cmake
index 2634f178da8c5..a8160e04d46a0 100644
--- a/libclc/cmake/modules/AddLibclc.cmake
+++ b/libclc/cmake/modules/AddLibclc.cmake
@@ -393,7 +393,7 @@ function(add_libclc_builtin_set)
endif()
# Add a 'prepare' target
- add_custom_target( prepare-${obj_suffix} ALL DEPENDS ${obj_suffix} )
+ add_custom_target( prepare-${obj_suffix} ALL DEPENDS ${libclc_builtins_lib} )
set_target_properties( "prepare-${obj_suffix}" PROPERTIES FOLDER "libclc/Device IR/Prepare" )
# Also add a 'prepare' target for the triple. Since a triple may have
More information about the cfe-commits
mailing list