mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 21:10:30 +00:00
Meta: Fix "Meta/serenity.sh run x86_64 Clang" on M1 Macs
QEMU crashes on M1 Macs when using `--accel hvf` option. To solve this, detect the host's architecture and only add the `--accel hvf` parameter if we are running on a "x86_64" machine. This will allow "arm64" machines like M1 Macs to work correctly.
This commit is contained in:
parent
89cd00b540
commit
7371d16b03
Notes:
sideshowbarker
2024-07-17 19:41:10 +09:00
Author: https://github.com/serenityosrocks Commit: https://github.com/SerenityOS/serenity/commit/7371d16b030 Pull-request: https://github.com/SerenityOS/serenity/pull/12210 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 4 additions and 2 deletions
|
@ -38,8 +38,10 @@ if [ "$(uname)" = "Darwin" ]; then
|
|||
[ -z "$SERENITY_QEMU_BIN" ] && SERENITY_QEMU_BIN="qemu-system-aarch64"
|
||||
fi
|
||||
|
||||
if $SERENITY_QEMU_BIN --accel help | grep -q hvf; then
|
||||
SERENITY_VIRT_TECH_ARG="--accel hvf"
|
||||
if [ "$(uname -m)" = "x86_64" ]; then
|
||||
if $SERENITY_QEMU_BIN --accel help | grep -q hvf; then
|
||||
SERENITY_VIRT_TECH_ARG="--accel hvf"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue