Author: Joseph Huber Date: 2026-01-05T10:40:14-06:00 New Revision: 3f2c5987907bea6889d9dad621551ea5db5d8ace
URL: https://github.com/llvm/llvm-project/commit/3f2c5987907bea6889d9dad621551ea5db5d8ace DIFF: https://github.com/llvm/llvm-project/commit/3f2c5987907bea6889d9dad621551ea5db5d8ace.diff LOG: [libclc] Suppress AMDGCN code object version for library code (#174412) Summary: The code object version defines the ABI the HSA executables follow. This prevents it from hard-coding it in the OpenCL libraries and preventing users from overriding it when using them. Added: Modified: libclc/CMakeLists.txt Removed: ################################################################################ diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index f9ee80645b70f..966ad48e47bb9 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -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 ) else() set( build_flags ) set( opt_flags -O3 ) _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
