Skip to content

Commit d097ff9

Browse files
committed
Only use Darling emulator on x86_64 host and with x86/x86_64 target.
1 parent cf91513 commit d097ff9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
</PropertyGroup>
2626

2727
<!-- TODO: https://github.com/vezel-dev/zig-sdk/issues/6 -->
28-
<PropertyGroup Condition="'$(TargetSystem)' == 'macos' and '$(HostSystem)' == 'linux' and '$(IsCrossCompilingArchitecture)' == 'false'">
28+
<PropertyGroup Condition="'$(TargetSystem)' == 'macos' and ('$(TargetArchitecture)' == 'x86' or '$(TargetArchitecture)' == 'x86_64') and '$(HostSystem)' == 'linux' and '$(HostArchitecture)' == 'x86_64'">
2929
<_EmulatorName>darling</_EmulatorName>
3030
<_EmulatorCommand>darling</_EmulatorCommand>
3131
</PropertyGroup>
3232

33-
<PropertyGroup Condition="'$(TargetSystem)' == 'macos' and '$(HostSystem)' == 'windows' and '$(IsCrossCompilingArchitecture)' == 'false'">
33+
<!-- TODO: https://github.com/vezel-dev/zig-sdk/issues/6 -->
34+
<PropertyGroup Condition="'$(TargetSystem)' == 'macos' and ('$(TargetArchitecture)' == 'x86' or '$(TargetArchitecture)' == 'x86_64') and '$(HostSystem)' == 'windows' and '$(HostArchitecture)' == 'x86_64'">
3435
<_EmulatorName>wsl darling</_EmulatorName>
3536
<_EmulatorCommand>wsl</_EmulatorCommand>
3637
<_EmulatorArgumentPrefix>darling "`wslpath </_EmulatorArgumentPrefix>

0 commit comments

Comments
 (0)