Skip to content

Commit 7f8c5be

Browse files
committed
Fix emulator detection to correctly decide whether QEMU is necessary in WSL.
Closes #96.
1 parent 37fa602 commit 7f8c5be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
<PropertyGroup Condition="'$(TargetSystem)' == 'linux' and '$(HostSystem)' == 'windows'">
1919
<_EmulatorName>wsl</_EmulatorName>
20-
<_EmulatorName Condition="'$(TargetArchitecture)' != 'x86_64'">$(_EmulatorName) $(_QemuName)</_EmulatorName>
20+
<_EmulatorName Condition="'$(_ArchitecturesCompatible)' != 'true'">$(_EmulatorName) $(_QemuName)</_EmulatorName>
2121
<_EmulatorCommand>wsl</_EmulatorCommand>
2222
<_EmulatorArgumentPrefix>"`wslpath </_EmulatorArgumentPrefix>
23-
<_EmulatorArgumentPrefix Condition="'$(TargetArchitecture)' != 'x86_64'">$(_QemuName) $(_EmulatorArgumentPrefix)</_EmulatorArgumentPrefix>
23+
<_EmulatorArgumentPrefix Condition="'$(_ArchitecturesCompatible)' != 'true'">$(_QemuName) $(_EmulatorArgumentPrefix)</_EmulatorArgumentPrefix>
2424
<_EmulatorArgumentSuffix>`"</_EmulatorArgumentSuffix>
2525
</PropertyGroup>
2626

0 commit comments

Comments
 (0)