Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented Sep 27, 2024

Most iOS embedder developers rely on two simulator builds:

  • ios_debug_sim_unopt (for simulators on x64 hosts)
  • ios_debug_sim_unopt_arm64 (for simulators on arm64 hosts)

We specify these two builds, for example, in our iOS unit test Xcode project testing/ios/IosUnitTests/Tests/FlutterEngineConfig.xcconfig.

Currently local_engine.json specifies two simulator builds:

  • ios_debug_sim_unopt (for simulators on x64 hosts)
  • ios_debug_sim_arm64 (for simulators on arm64 hosts)

While the x64 build specifies the --unoptimized flag, the arm64 build does not, which is problematic for those wanting to use both et and run the iOS unit tests.

This adds the --unoptimized flag for consistency with prevailing practice among iOS embedder developers.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I had the good sense not to name either of my kids Json.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Most iOS embedder developers rely on two simulator builds:
* ios_debug_sim_unopt (for simulators on x64 hosts)
* ios_debug_sim_unopt_arm64 (for simulators on arm64 hosts)

We specify these two builds, for example, in our iOS unit test Xcode
project `testing/ios/IosUnitTests/Tests/FlutterEngineConfig.xcconfig`.

Currently `local_engine.json` specifies two simulator builds:
* ios_debug_sim_unopt (for simulators on x64 hosts)
* ios_debug_sim_arm64 (for simulators on arm64 hosts)

While the x64 build specifies the `--unoptimized` flag, the arm64 build
does not, which is problematic for those wanting to use both `et` and
run the iOS unit tests.

This adds the `--unoptimized` flag for consistency with prevailing
practice among iOS embedder developers.
@cbracken cbracken added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 27, 2024
@auto-submit auto-submit bot merged commit 6999583 into flutter:main Sep 27, 2024
@cbracken cbracken deleted the unopt-sim-arm64 branch September 27, 2024 21:41
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 27, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 27, 2024
cbracken added a commit that referenced this pull request Sep 28, 2024
Make it explicit that it's an unopt engine for consistency with the
other unopt build descriptions.

Fixup to: #55493
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants