diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-11-27 18:47:22 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-11-28 12:34:22 +0200 |
commit | efb567f1f59f9282785849b4ed8af59225b830a6 (patch) | |
tree | 3290a450a8a7d94b5a55d84717d340ebe8f13865 /next | |
parent | 1455f6f5813c393ac21c05a95d4cbefd9f0310ba (diff) | |
download | qtlocation-mapboxgl-efb567f1f59f9282785849b4ed8af59225b830a6.tar.gz |
[android] Use -Oz to reduce binary size
Diffstat (limited to 'next')
-rw-r--r-- | next/platform/android/android.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/next/platform/android/android.cmake b/next/platform/android/android.cmake index b0c9c712dc..628a25515a 100644 --- a/next/platform/android/android.cmake +++ b/next/platform/android/android.cmake @@ -387,11 +387,11 @@ set_target_properties(mbgl-benchmark-runner PROPERTIES LINK_FLAGS_RELEASE "-fuse 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") -target_compile_options(example-custom-layer PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>) -target_compile_options(mapbox-gl PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>) -target_compile_options(mbgl-core PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>) -target_compile_options(mbgl-render-test-runner PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>) -target_compile_options(mbgl-vendor-icu PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>) -target_compile_options(mbgl-vendor-sqlite PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>) +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>) +target_compile_options(mbgl-core PRIVATE $<$<CONFIG:Release>:-Oz -Qunused-arguments -flto>) +target_compile_options(mbgl-render-test-runner PRIVATE $<$<CONFIG:Release>:-Oz -Qunused-arguments -flto>) +target_compile_options(mbgl-vendor-icu PRIVATE $<$<CONFIG:Release>:-Oz -Qunused-arguments -flto>) +target_compile_options(mbgl-vendor-sqlite PRIVATE $<$<CONFIG:Release>:-Oz -Qunused-arguments -flto>) install(TARGETS mapbox-gl LIBRARY DESTINATION lib) |