Use --icf=all on architectures where it's supported

This commit is contained in:
Ales Pergl 2018-02-21 17:48:12 +01:00
parent 77b8c81096
commit c3dbba00a6

View file

@ -291,6 +291,7 @@
'ldflags': [ 'ldflags': [
'-flto=thin', '-flto=thin',
'-fuse-ld=lld', # Chromium Clang uses lld for doing LTO '-fuse-ld=lld', # Chromium Clang uses lld for doing LTO
'-Wl,--icf=all',
'-Wl,--lto-O0', # this could be removed in future; see https://codereview.chromium.org/2939923004 '-Wl,--lto-O0', # this could be removed in future; see https://codereview.chromium.org/2939923004
'-Wl,-mllvm,-function-sections', '-Wl,-mllvm,-function-sections',
'-Wl,-mllvm,-data-sections', '-Wl,-mllvm,-data-sections',