Apple silicon arch -arm64 -> -arm64e (#68855)
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -265,7 +265,7 @@ void main() {
|
||||
|
||||
expect(xcode.xcrunCommand(), <String>[
|
||||
'/usr/bin/arch',
|
||||
'-arm64',
|
||||
'-arm64e',
|
||||
'xcrun',
|
||||
]);
|
||||
expect(fakeProcessManager.hasRemainingExpectations, isFalse);
|
||||
|
||||
Reference in New Issue
Block a user