mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Also use --icf=safe if we are being linked by gold.
llvm-svn: 223394
This commit is contained in:
parent
30850dee4d
commit
d407c79665
@ -161,7 +161,7 @@ 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")
|
||||
LINK_FLAGS " -Wl,--gc-sections -Wl,--icf=safe")
|
||||
endif()
|
||||
|
||||
if(NOT LLVM_NO_DEAD_STRIP)
|
||||
|
Loading…
Reference in New Issue
Block a user