mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Meta: Add environment variable for disabling qemu's gdb socket
When running QEMU on windows, the `-s` does not work, and causes QEMU to crash, you can now use the environment variable to disable that option.
This commit is contained in:
parent
eed6adb6fc
commit
d0c7a48186
1 changed files with 7 additions and 3 deletions
10
Meta/run.sh
10
Meta/run.sh
|
@ -76,9 +76,13 @@ else
|
|||
SERENITY_QEMU_DISPLAY_DEVICE="VGA,vgamem_mb=64 "
|
||||
fi
|
||||
|
||||
if [ -z "$SERENITY_DISABLE_GDB_SOCKET" ]; then
|
||||
SERENITY_EXTRA_QEMU_ARGS="$SERENITY_EXTRA_QEMU_ARGS -s"
|
||||
fi
|
||||
|
||||
[ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS="
|
||||
$SERENITY_EXTRA_QEMU_ARGS
|
||||
-s -m $SERENITY_RAM_SIZE
|
||||
-m $SERENITY_RAM_SIZE
|
||||
-cpu $SERENITY_QEMU_CPU
|
||||
-d guest_errors
|
||||
-smp 2
|
||||
|
@ -101,7 +105,7 @@ $SERENITY_EXTRA_QEMU_ARGS
|
|||
|
||||
[ -z "$SERENITY_COMMON_QEMU_Q35_ARGS" ] && SERENITY_COMMON_QEMU_Q35_ARGS="
|
||||
$SERENITY_EXTRA_QEMU_ARGS
|
||||
-s -m $SERENITY_RAM_SIZE
|
||||
-m $SERENITY_RAM_SIZE
|
||||
-cpu $SERENITY_QEMU_CPU
|
||||
-machine q35
|
||||
-d guest_errors
|
||||
|
@ -192,7 +196,7 @@ elif [ "$SERENITY_RUN" = "ci" ]; then
|
|||
echo "Running QEMU in CI"
|
||||
"$SERENITY_QEMU_BIN" \
|
||||
$SERENITY_EXTRA_QEMU_ARGS \
|
||||
-s -m $SERENITY_RAM_SIZE \
|
||||
-m $SERENITY_RAM_SIZE \
|
||||
-cpu $SERENITY_QEMU_CPU \
|
||||
-d guest_errors \
|
||||
-smp 2 \
|
||||
|
|
Loading…
Add table
Reference in a new issue