[libclc] [libclc] Don't add --override if there is no bitcode of generic implementation (PR #157603)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 10 18:54:19 PDT 2025


================
@@ -92,7 +92,8 @@ function(link_bc)
     ${ARGN}
   )
 
-  if( ARG_INTERNALIZE )
+  string( FIND "${ARG_INPUTS}" "/generic/" has_generic )
+  if( ARG_INTERNALIZE OR has_generic LESS 0 )
----------------
arsenm wrote:

Can this actually be negative? Or equal 0?

https://github.com/llvm/llvm-project/pull/157603


More information about the cfe-commits mailing list