Skip to content

Commit

Permalink
Fix emulator detection to correctly decide whether QEMU is necessary …
Browse files Browse the repository at this point in the history
…in WSL.

Closes #96.
  • Loading branch information
alexrp committed Jan 6, 2024
1 parent 37fa602 commit 7f8c5be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk/build/Vezel.Zig.Sdk.Emulator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

<PropertyGroup Condition="'$(TargetSystem)' == 'linux' and '$(HostSystem)' == 'windows'">
<_EmulatorName>wsl</_EmulatorName>
<_EmulatorName Condition="'$(TargetArchitecture)' != 'x86_64'">$(_EmulatorName) $(_QemuName)</_EmulatorName>
<_EmulatorName Condition="'$(_ArchitecturesCompatible)' != 'true'">$(_EmulatorName) $(_QemuName)</_EmulatorName>
<_EmulatorCommand>wsl</_EmulatorCommand>
<_EmulatorArgumentPrefix>"`wslpath </_EmulatorArgumentPrefix>
<_EmulatorArgumentPrefix Condition="'$(TargetArchitecture)' != 'x86_64'">$(_QemuName) $(_EmulatorArgumentPrefix)</_EmulatorArgumentPrefix>
<_EmulatorArgumentPrefix Condition="'$(_ArchitecturesCompatible)' != 'true'">$(_QemuName) $(_EmulatorArgumentPrefix)</_EmulatorArgumentPrefix>
<_EmulatorArgumentSuffix>`"</_EmulatorArgumentSuffix>
</PropertyGroup>

Expand Down

0 comments on commit 7f8c5be

Please sign in to comment.