[libclc] [libclc] Suppress AMDGCN code object version for library code (PR #174412)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 5 06:46:05 PST 2026


================
@@ -382,6 +382,9 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
       if( ARCH STREQUAL clspv64 )
         set( MACRO_ARCH CLSPV64 )
       endif()
+    elseif( ARCH STREQUAL amdgcn )
+      set( build_flags "SHELL:-Xclang -mcode-object-version=none" )
+      set( opt_flags -O3 )
----------------
arsenm wrote:

The opt level probably shouldn't be coming from each target 

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


More information about the cfe-commits mailing list