Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[build] enable Link Time Optimization on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Nov 22, 2016
1 parent 3621031 commit 68b3723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions platform/ios/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions platform/ios/ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68b3723

Please sign in to comment.