mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Meta: Re-enable automatic virtualization detection on Windows
Before, we wouldn't enable virtualization on Windows anymore unless SERENITY_VIRTUALIZATION_SUPPORT was set explicitly. As far as we know, there's no automatic way of detecting whether WHPX is enabled or not. So we'll just enable virtualization on Windows by default, and if that doesn't work the user can still disable it manually with SERENITY_VIRTUALIZATION_SUPPORT=0.
This commit is contained in:
parent
64c66e26f5
commit
a67bbf1ac4
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/a67bbf1ac4 Pull-request: https://github.com/SerenityOS/serenity/pull/13814 Reviewed-by: https://github.com/sin-ack ✅
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ SCRIPT_DIR="$(dirname "${0}")"
|
|||
if [ -z ${SERENITY_VIRTUALIZATION_SUPPORT+x} ]; then
|
||||
VIRTUALIZATION_SUPPORT="0"
|
||||
[ -e /dev/kvm ] && [ -r /dev/kvm ] && [ -w /dev/kvm ] && [ "$SERENITY_ARCH" != "aarch64" ] && [ "$(uname -m)" != "aarch64" ] && VIRTUALIZATION_SUPPORT="1"
|
||||
command -v wslpath >/dev/null && VIRTUALIZATION_SUPPORT="1"
|
||||
else
|
||||
VIRTUALIZATION_SUPPORT="$SERENITY_VIRTUALIZATION_SUPPORT"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue