Skip to content

Commit

Permalink
Fix qemu emulator name for x86 and powerpc64le.
Browse files Browse the repository at this point in the history
Part of #96.
  • Loading branch information
alexrp committed Dec 29, 2023
1 parent 934f545 commit fee1809
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/sdk/build/Vezel.Zig.Sdk.Emulator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@
and target characteristics that were determined earlier.
-->

<PropertyGroup>
<_QemuName>qemu-$(TargetArchitecture)</_QemuName>
<_QemuName Condition="'$(TargetArchitecture)' == 'powerpc64le'">qemu-ppc64</_QemuName>
<_QemuName Condition="'$(TargetArchitecture)' == 'x86'">qemu-i386</_QemuName>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetSystem)' == 'linux' and '$(HostSystem)' == 'linux'">
<_EmulatorName>qemu-$(TargetArchitecture)</_EmulatorName>
<_EmulatorCommand>qemu-$(TargetArchitecture)</_EmulatorCommand>
<_EmulatorName>$(_QemuName)</_EmulatorName>
<_EmulatorCommand>$(_QemuName)</_EmulatorCommand>
</PropertyGroup>

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

Expand Down

0 comments on commit fee1809

Please sign in to comment.