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


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to