mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-23 04:01:16 +00:00
Disable --icf=safe to avoid a bug.
Thanks to Sameer Sahasrabuddhe for the report! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b59ec5ad50
commit
97996ea790
@ -161,7 +161,9 @@ function(add_link_opts target_name)
|
||||
if(LLVM_LINKER_IS_GOLD)
|
||||
# With gold gc-sections is always safe.
|
||||
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
|
||||
LINK_FLAGS " -Wl,--gc-sections -Wl,--icf=safe")
|
||||
LINK_FLAGS " -Wl,--gc-sections")
|
||||
# Note that there is a bug with -Wl,--icf=safe so it is not safe
|
||||
# to enable. See https://sourceware.org/bugzilla/show_bug.cgi?id=17704.
|
||||
endif()
|
||||
|
||||
if(NOT LLVM_NO_DEAD_STRIP)
|
||||
|
Loading…
x
Reference in New Issue
Block a user