mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 17:42:20 +00:00
fix(hack): don't override QEMU_ACCEL on macOS
On macOS, common.sh always set QEMU_ACCEL to hvf when it was available, replacing any value the user set, like tcg. Only pick an accelerator when QEMU_ACCEL isn't set, as the KVM check already does.
This commit is contained in:
1 parent
406ad8dede
commit
592d7b41f6
1 file changed
+1
-1
+1
-1
@@ -40,7 +40,7 @@ if [ -z "${QEMU_ACCEL}" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] && [ -e "/dev
|
||||
QEMU_ACCEL="kvm"
|
||||
fi
|
||||
|
||||
if [ "$(uname)" = "Darwin" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] &&
|
||||
if [ -z "${QEMU_ACCEL}" ] && [ "$(uname)" = "Darwin" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] &&
|
||||
[ "$(sysctl -n kern.hv_support 2>&1 || true)" = "1" ]; then
|
||||
QEMU_ACCEL="hvf"
|
||||
fi
|
||||
Reference in new issue
Block a user