Skip to content

Commit 8916d4b

Browse files
committed
Add support for using Rosetta 2 as emulator.
Part of #96.
1 parent d097ff9 commit 8916d4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sdk/build/Vezel.Zig.Sdk.Emulator.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
<_EmulatorArgumentSuffix>`"</_EmulatorArgumentSuffix>
2525
</PropertyGroup>
2626

27+
<PropertyGroup Condition="'$(TargetSystem)-$(TargetArchitecture)' == 'macos-x86_64' and '$(HostSystem)-$(HostArchitecture)' == 'macos-aarch64'">
28+
<_EmulatorName>arch</_EmulatorName>
29+
<_EmulatorCommand>arch -x86_64</_EmulatorCommand>
30+
</PropertyGroup>
31+
2732
<!-- TODO: https://github.com/vezel-dev/zig-sdk/issues/6 -->
2833
<PropertyGroup Condition="'$(TargetSystem)' == 'macos' and ('$(TargetArchitecture)' == 'x86' or '$(TargetArchitecture)' == 'x86_64') and '$(HostSystem)' == 'linux' and '$(HostArchitecture)' == 'x86_64'">
2934
<_EmulatorName>darling</_EmulatorName>

0 commit comments

Comments
 (0)