summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-11-21 19:49:50 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-11-22 21:18:19 +0100
commit68b37230c96b33a6c33aa7bd3f197784751b93bc (patch)
tree29c6fbea8181c98e00b53015885b4957d09bc92e
parent362103196075d2a516947f0ce7afa01a717e3ecd (diff)
downloadqtlocation-mapboxgl-upstream/7131-ios-compile-flags.tar.gz
[build] enable Link Time Optimization on iOSupstream/7131-ios-compile-flags
-rw-r--r--platform/ios/config.cmake1
-rw-r--r--platform/ios/ios.xcodeproj/project.pbxproj1
2 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/config.cmake b/platform/ios/config.cmake
index 19e8f25fc6..7c6aaab0d0 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 $<$<CONFIG:Debug>:YES>)
set_xcode_property(mbgl-core GCC_SYMBOLS_PRIVATE_EXTERN YES)
+ set_xcode_property(mbgl-core LLVM_LTO $<$<CONFIG:Release>:YES>)
target_sources(mbgl-core
# Loop
diff --git a/platform/ios/ios.xcodeproj/project.pbxproj b/platform/ios/ios.xcodeproj/project.pbxproj
index a2c7565d66..7ac61ceb8e 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;