From 0362798caa319416fbb9d957f076f0ed554c7283 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 17 Jul 2024 12:06:16 -0700 Subject: [PATCH] [macOS] Archive universal gen_snapshot binaries (flutter/engine#53962) In #53524, we started producing universal `gen_snapshot_arm64` and `gen_snapshot_x64` binaries. This migrates away from bundling `gen_snapshot` binaries with x64-only host architecture to universal binaries that bundle both x64 and arm64 host architectures. Also adds a dependency on `flutter/lib/snapshot:create_macos_gen_snapshots` to the profile build, where it was previously missing. Presumably, `gen_snapshot` was being built as a side-effect of one of the other targets. Issue: https://github.com/flutter/flutter/issues/101138 Issue: https://github.com/flutter/flutter/issues/69157 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/ci/builders/mac_host_engine.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/ci/builders/mac_host_engine.json b/engine/src/flutter/ci/builders/mac_host_engine.json index a4ed772663..c774fdeede 100644 --- a/engine/src/flutter/ci/builders/mac_host_engine.json +++ b/engine/src/flutter/ci/builders/mac_host_engine.json @@ -368,6 +368,7 @@ "config": "ci/mac_profile_arm64", "targets": [ "flutter/build/archives:artifacts", + "flutter/lib/snapshot:create_macos_gen_snapshots", "flutter/shell/platform/darwin/macos:zip_macos_flutter_framework" ] }, @@ -558,9 +559,9 @@ "--dst", "out/debug/snapshot", "--arm64-path", - "out/ci/mac_debug_arm64/clang_x64/gen_snapshot", + "out/ci/mac_debug_arm64/gen_snapshot_arm64", "--x64-path", - "out/ci/host_debug/gen_snapshot", + "out/ci/host_debug/gen_snapshot_x64", "--zip" ], "script": "flutter/sky/tools/create_macos_gen_snapshots.py" @@ -571,9 +572,9 @@ "--dst", "out/profile/snapshot", "--arm64-path", - "out/ci/mac_profile_arm64/clang_x64/gen_snapshot", + "out/ci/mac_profile_arm64/gen_snapshot_arm64", "--x64-path", - "out/ci/host_profile/gen_snapshot", + "out/ci/host_profile/gen_snapshot_x64", "--zip" ], "script": "flutter/sky/tools/create_macos_gen_snapshots.py" @@ -584,9 +585,9 @@ "--dst", "out/release/snapshot", "--arm64-path", - "out/ci/mac_release_arm64/clang_x64/gen_snapshot", + "out/ci/mac_release_arm64/gen_snapshot_arm64", "--x64-path", - "out/ci/host_release/gen_snapshot", + "out/ci/host_release/gen_snapshot_x64", "--zip" ], "script": "flutter/sky/tools/create_macos_gen_snapshots.py"