summaryrefslogtreecommitdiff
path: root/next
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-28 12:35:08 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-29 13:42:18 +0200
commitaf0d46c367f206feb0f22e1c5d97b4b704a72499 (patch)
treebf043a2657c7dee080d12f29c131b726f5fd6bd1 /next
parent597757df6aba1ae8c4477706142823303f020de7 (diff)
downloadqtlocation-mapboxgl-af0d46c367f206feb0f22e1c5d97b4b704a72499.tar.gz
[android] Use icf=all
Chromium is using it for a while on ARM. https://codereview.chromium.org/1153143004/patch/20001/30002
Diffstat (limited to 'next')
-rw-r--r--next/platform/android/android.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/next/platform/android/android.cmake b/next/platform/android/android.cmake
index 628a25515a..dcc12ecb39 100644
--- a/next/platform/android/android.cmake
+++ b/next/platform/android/android.cmake
@@ -381,11 +381,11 @@ add_custom_command(
# Android has no concept of MinSizeRel on android.toolchain.cmake and provides configurations tuned for binary size. We can push it a bit
# more with code folding and LTO.
-set_target_properties(example-custom-layer PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=safe")
-set_target_properties(mapbox-gl PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=safe")
-set_target_properties(mbgl-benchmark-runner PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=safe")
-set_target_properties(mbgl-render-test-runner PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=safe")
-set_target_properties(mbgl-test-runner PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=safe")
+set_target_properties(example-custom-layer PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=all")
+set_target_properties(mapbox-gl PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=all")
+set_target_properties(mbgl-benchmark-runner PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=all")
+set_target_properties(mbgl-render-test-runner PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=all")
+set_target_properties(mbgl-test-runner PROPERTIES LINK_FLAGS_RELEASE "-fuse-ld=gold -O2 -flto -Wl,--icf=all")
target_compile_options(example-custom-layer PRIVATE $<$<CONFIG:Release>:-Oz -Qunused-arguments -flto>)
target_compile_options(mapbox-gl PRIVATE $<$<CONFIG:Release>:-Oz -Qunused-arguments -flto>)