mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00: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
Notes:
sideshowbarker
2024-07-18 11:11:35 +09:00
Author: https://github.com/GalHorowitz Commit: https://github.com/SerenityOS/serenity/commit/d0c7a481863 Pull-request: https://github.com/SerenityOS/serenity/pull/8312 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/bgianfo
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