Make arm64 iOS simulator local engine build unopt (flutter/engine#55493)

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.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
Chris Bracken
2024-09-27 14:41:05 -07:00
committed by GitHub
parent 7fb25cdc23
commit 1287ae153e

View File

@@ -184,16 +184,17 @@
"--simulator-cpu=arm64",
"--runtime-mode",
"debug",
"--unoptimized",
"--no-stripped",
"--no-lto",
"--xcode-symlinks",
"--rbe",
"--no-goma"
],
"name": "macos/ios_debug_sim_arm64",
"name": "macos/ios_debug_sim_unopt_arm64",
"description": "Builds a debug mode engine that targets the arm64 iOS simulator from a macOS host.",
"ninja": {
"config": "ios_debug_sim_arm64",
"config": "ios_debug_sim_unopt_arm64",
"targets": []
},
"properties": {