mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
create_macos_gen_snapshots.py uses `xcrun bitcode_strip` to copy gen_snapshot from its build directory to a suffixed gen_snapshot_arm64 or gen_snapshot_armv7, while stripping the bitcode segment, if any. This simplifies the python invocation to use subprocess.check_call, and also guarantees the process exits with failure in such a situation -- we weren't checking the return value of generate_gen_snapshot. This is cleanup for issues encountered while working on merging macOS/iOS gen_snapshot tooling. Issue: https://github.com/flutter/flutter/issues/103386 Issue: https://github.com/flutter/flutter/issues/101138