Apple silicon arch -arm64 -> -arm64e (#68855)

This commit is contained in:
Jenn Magder
2020-10-23 13:48:38 -07:00
committed by GitHub
parent 424ea0958b
commit 59544e377d
2 changed files with 3 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ class Xcode {
/// tools and properties.
///
/// Returns `xcrun` on x86 macOS.
/// Returns `/usr/bin/arch -arm64 xcrun` on ARM macOS to force Xcode commands
/// Returns `/usr/bin/arch -arm64e xcrun` on ARM macOS to force Xcode commands
/// to run outside the x86 Rosetta translation, which may cause crashes.
List<String> xcrunCommand() {
final List<String> xcrunCommand = <String>[];
@@ -182,7 +182,7 @@ class Xcode {
// Force Xcode commands to run outside Rosetta.
xcrunCommand.addAll(<String>[
'/usr/bin/arch',
'-arm64',
'-arm64e',
]);
}
xcrunCommand.add('xcrun');

View File

@@ -265,7 +265,7 @@ void main() {
expect(xcode.xcrunCommand(), <String>[
'/usr/bin/arch',
'-arm64',
'-arm64e',
'xcrun',
]);
expect(fakeProcessManager.hasRemainingExpectations, isFalse);