[libc][AMDGPU] Disable the AMDGPU backend's ctor/dtor lowering for libc

The AMDGPU backend has a built-in pass to lower constructors. We do this
manually in the `start.cpp` implementation so we can disable this to
keep the binaries smaller.

Differential Revision: https://reviews.llvm.org/D151213
This commit is contained in:
Joseph Huber 2023-05-23 09:16:30 -05:00
parent d67c91b5e7
commit ad00a3db4d

View File

@ -25,4 +25,5 @@ target_link_libraries(
"-mcpu=${LIBC_GPU_TARGET_ARCHITECTURE}"
"--target=${LIBC_GPU_TARGET_TRIPLE}"
"-flto"
"-Wl,-mllvm,-amdgpu-lower-global-ctor-dtor=0"
)