[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
This commit is contained in:
Chris Bracken
2024-07-17 12:06:16 -07:00
committed by GitHub
parent 1a94660875
commit 0362798caa

View File

@@ -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"