Meta: Conditionally run QEMU with QMP

QMP is currently used with UNIX sockets, which can't be created on
Windows hosts. Let's just not start QMP if using Windows QEMU.
This commit is contained in:
Nathan Ell 2021-12-12 13:13:49 -07:00 committed by Andreas Kling
parent 212334eaef
commit 7ca2315659
Notes: sideshowbarker 2024-07-17 22:50:01 +09:00

View file

@ -213,11 +213,15 @@ if [ -z "$SERENITY_MACHINE" ]; then
-device i82801b11-bridge,id=bridge3 -device sdhci-pci,bus=bridge3
-device ich9-ahci,bus=bridge3
-chardev stdio,id=stdout,mux=on
-qmp unix:qmp-sock,server,nowait
"
fi
fi
if [ "$NATIVE_WINDOWS_QEMU" -ne "1" ]; then
SERENITY_MACHINE="$SERENITY_MACHINE
-qmp unix:qmp-sock,server,nowait"
fi
[ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS="