Revert "Remove multi-arch check in iOS builds (#37407)" (#37413)

This reverts commit 5809219509.
This commit is contained in:
Chinmay Garde
2019-08-01 11:43:32 -07:00
committed by GitHub
parent 5809219509
commit 9ea78d4488
2 changed files with 10 additions and 1 deletions

View File

@@ -1 +1 @@
9fca3c74491a6f92322ca55cab53b9361c583135
b41c172bcd861a09ccbe7a4b1addeb125d6f9541

View File

@@ -56,6 +56,15 @@ 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