From 68b37230c96b33a6c33aa7bd3f197784751b93bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 21 Nov 2016 19:49:50 +0100 Subject: [PATCH] [build] enable Link Time Optimization on iOS --- platform/ios/config.cmake | 1 + platform/ios/ios.xcodeproj/project.pbxproj | 1 + 2 files changed, 2 insertions(+) diff --git a/platform/ios/config.cmake b/platform/ios/config.cmake index 19e8f25fc68..7c6aaab0d06 100644 --- a/platform/ios/config.cmake +++ b/platform/ios/config.cmake @@ -6,6 +6,7 @@ macro(mbgl_platform_core) set_xcode_property(mbgl-core BITCODE_GENERATION_MODE bitcode) set_xcode_property(mbgl-core ONLY_ACTIVE_ARCH $<$:YES>) set_xcode_property(mbgl-core GCC_SYMBOLS_PRIVATE_EXTERN YES) + set_xcode_property(mbgl-core LLVM_LTO $<$:YES>) target_sources(mbgl-core # Loop diff --git a/platform/ios/ios.xcodeproj/project.pbxproj b/platform/ios/ios.xcodeproj/project.pbxproj index a2c7565d660..7ac61ceb8ea 100644 --- a/platform/ios/ios.xcodeproj/project.pbxproj +++ b/platform/ios/ios.xcodeproj/project.pbxproj @@ -2238,6 +2238,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 7.0; + LLVM_LTO = YES; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SYMROOT = ../../build/ios;