Skip to content

Commit

Permalink
Only use Darling emulator on x86_64 host and with x86/x86_64 target.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Dec 29, 2023
1 parent 3e89f5f commit d38160d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sdk/build/Vezel.Zig.Sdk.Emulator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
</PropertyGroup>

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

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

0 comments on commit d38160d

Please sign in to comment.