From 1287ae153ed424d57993a04f451f9e9fdda8944a Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 27 Sep 2024 14:41:05 -0700 Subject: [PATCH] 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 --- engine/src/flutter/ci/builders/local_engine.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/ci/builders/local_engine.json b/engine/src/flutter/ci/builders/local_engine.json index e675ba7a69..17356f594d 100644 --- a/engine/src/flutter/ci/builders/local_engine.json +++ b/engine/src/flutter/ci/builders/local_engine.json @@ -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": {