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

Only build active architecture in Xcode - #7388

Merged
kkaefer merged 1 commit into
masterfrom
7388-ios-only-active-arch
Dec 12, 2016
Merged

kkaefer merged 1 commit into
masterfrom
7388-ios-only-active-arch

Conversation

@kkaefer

@kkaefer kkaefer commented Dec 12, 2016

Copy link
Copy Markdown
Member

Trying to land #7131 as separate PRs to make the changes easier to reason about.

This changes the default setting to only build the active architecture (i.e. they for the device you connected to your Mac). This cuts build time in half since we don't need to build the other architecture when iterating.

On CI, and for make ipackage/iframework, we are using the package.sh script which already forces ONLY_ACTIVE_ARCH=NO and ensures that both architectures get built, so we can discover build-time issues for different architectures. Similarly, running other iOS-related make targets that build for Simluator already force ONLY_ACTIVE_ARCH=YES. This means that this change only affects what is being built when you use Xcode to manually compile apps; automated builds are unaffected by this change.

@kkaefer
kkaefer requested review from 1ec5 and friedbunny December 12, 2016 16:00
@kkaefer

kkaefer commented Dec 12, 2016

Copy link
Copy Markdown
Member Author

Also note that ONLY_ACTIVE_ARCH=YES is already the current setting for Debug builds, so this PR brings the setting for mbgl-core in line with the settings of the targets in our checked-in projects.

@friedbunny friedbunny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kkaefer
kkaefer merged commit 6fb24b2 into master Dec 12, 2016
@kkaefer
kkaefer deleted the 7388-ios-only-active-arch branch December 12, 2016 17:53
@kkaefer kkaefer mentioned this pull request Jan 5, 2017
5 tasks done
@friedbunny friedbunny added build iOS Mapbox Maps SDK for iOS labels Jul 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

build iOS Mapbox Maps SDK for iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants