summaryrefslogtreecommitdiff
path: root/Meta/run.sh
diff options
context:
space:
mode:
authorNathan Ell <nathanjamesell@gmail.com>2021-12-12 13:13:49 -0700
committerAndreas Kling <kling@serenityos.org>2021-12-12 22:31:43 +0100
commit7ca23156592b6abc0f6d40e96364170f3f90b05a (patch)
tree2b70288d0b3cf24881ff186a020028b8c506f40f /Meta/run.sh
parent212334eaefd735d1819f26c0b6258c844c006c2a (diff)
downloadserenity-7ca23156592b6abc0f6d40e96364170f3f90b05a.zip
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.
Diffstat (limited to 'Meta/run.sh')
-rwxr-xr-xMeta/run.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/Meta/run.sh b/Meta/run.sh
index 444a7b4b03..ab04595507 100755
--- a/Meta/run.sh
+++ b/Meta/run.sh
@@ -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="