Skip to content

Commit 71168f6

Browse files
authored
[libc] Build the libc objects using a generic AMDGPU ABI (#65782)
Summary: AMDGPU binaries use a "code object" as the ABI indicator. We are currently trying to move over to a newer code object. We want these library functions to use the "generic" or default ABI such that it is specified when linked into the user application. Currently this will default to v4 as the startup code will use whatever the current default is.
1 parent 9ac5b1f commit 71168f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/cmake/modules/LLVMLibCObjectRules.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function(_build_gpu_objects fq_target_name internal_target_name)
168168
if("${gpu_arch}" IN_LIST all_amdgpu_architectures)
169169
set(gpu_target_triple "amdgcn-amd-amdhsa")
170170
list(APPEND compile_options "-mcpu=${gpu_arch}")
171+
list(APPEND compile_options "SHELL:-Xclang -mcode-object-version=none")
171172
elseif("${gpu_arch}" IN_LIST all_nvptx_architectures)
172173
set(gpu_target_triple "nvptx64-nvidia-cuda")
173174
get_nvptx_compile_options(nvptx_options ${gpu_arch})

0 commit comments

Comments
 (0)