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:
Liam Appelbe 2019-08-01 11:16:21 -07:00 committed by GitHub
parent 5bb8d8fcde
commit 5809219509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -1 +1 @@
b41c172bcd861a09ccbe7a4b1addeb125d6f9541
9fca3c74491a6f92322ca55cab53b9361c583135

View File

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