mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 17:36:05 +00:00
[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:
parent
d67c91b5e7
commit
ad00a3db4d
@ -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"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user