mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Meta: Check installed QEMU version
`ninja install` fails with a clueless error message if the installed QEMU version is less than 5.0.
This commit is contained in:
parent
340f6cde2d
commit
5d57384bc4
Notes:
sideshowbarker
2024-07-18 12:33:14 +09:00
Author: https://github.com/apoorv-mishra 🔰 Commit: https://github.com/SerenityOS/serenity/commit/5d57384bc45 Pull-request: https://github.com/SerenityOS/serenity/pull/7921 Reviewed-by: https://github.com/gunnarbeutner ✅
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ SERENITY_RUN="${SERENITY_RUN:-$1}"
|
|||
fi
|
||||
}
|
||||
|
||||
SERENITY_QEMU_MIN_REQ_VERSION=5
|
||||
installed_major_version=$("$SERENITY_QEMU_BIN" -version | head -n 1 | grep -Po "(?<=QEMU emulator version )([1-9]\d*|0)")
|
||||
[ "$installed_major_version" -lt "$SERENITY_QEMU_MIN_REQ_VERSION" ] && die "Required QEMU >= 5.0! Found $($SERENITY_QEMU_BIN -version | head -n 1)"
|
||||
|
||||
[ -z "$SERENITY_COMMON_QEMU_ARGS" ] && SERENITY_COMMON_QEMU_ARGS="
|
||||
$SERENITY_EXTRA_QEMU_ARGS
|
||||
-s -m $SERENITY_RAM_SIZE
|
||||
|
|
Loading…
Reference in a new issue