mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Remove multi-arch check in iOS builds (#37407)
* Remove multi-arch check in iOS builds * Manual roll of https://github.com/flutter/engine/pull/10010
This commit is contained in:
parent
5bb8d8fcde
commit
5809219509
@ -1 +1 @@
|
||||
b41c172bcd861a09ccbe7a4b1addeb125d6f9541
|
||||
9fca3c74491a6f92322ca55cab53b9361c583135
|
||||
|
@ -56,15 +56,6 @@ class GenSnapshot {
|
||||
|
||||
final String snapshotterPath = getSnapshotterPath(snapshotType);
|
||||
|
||||
// iOS gen_snapshot is a multi-arch binary. Running as an i386 binary will
|
||||
// generate armv7 code. Running as an x86_64 binary will generate arm64
|
||||
// code. /usr/bin/arch can be used to run binaries with the specified
|
||||
// architecture.
|
||||
if (snapshotType.platform == TargetPlatform.ios) {
|
||||
final String hostArch = iosArch == IOSArch.armv7 ? '-i386' : '-x86_64';
|
||||
return runCommandAndStreamOutput(<String>['/usr/bin/arch', hostArch, snapshotterPath, ...args]);
|
||||
}
|
||||
|
||||
StringConverter outputFilter;
|
||||
if (additionalArgs.contains('--strip')) {
|
||||
// Filter out gen_snapshot's warning message about stripping debug symbols
|
||||
|
Loading…
Reference in New Issue
Block a user