commit c3e11dc69bd66905417760d1579ddad1c392052b
parent 4ad393869182f7e4609a67d6a1e2cc33b3c54cbc
Author: Rong "Mantle" Bao <webmaster@csmantle.top>
Date: Wed, 15 Oct 2025 14:13:00 +0000
Bug 1993666 - [loong64] Part 2: Enable WASM JSPI by default on loong64-simulator. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D268248
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/js/moz.configure b/js/moz.configure
@@ -710,7 +710,7 @@ def default_wasm_jspi(
return
if simulator:
- return simulator[0] in ("arm64", "arm", "riscv64")
+ return simulator[0] in ("arm64", "arm", "loong64", "riscv64")
if target.cpu in ("x86_64", "x86", "aarch64", "arm", "loongarch64", "riscv64"):
return True
@@ -737,8 +737,10 @@ def wasm_jspi(value, jit_enabled, simulator, no_experimental, target):
if not jit_enabled:
die("--enable-wasm-jspi requires --enable-jit")
- if simulator and simulator[0] not in ("arm64", "arm", "riscv64"):
- die("--enable-wasm-jspi is only supported for arm64/arm/riscv64 simulators")
+ if simulator and simulator[0] not in ("arm64", "arm", "loong64", "riscv64"):
+ die(
+ "--enable-wasm-jspi is only supported for arm64/arm/loong64/riscv64 simulators"
+ )
if target.cpu in ("x86_64", "x86", "aarch64", "arm", "loongarch64", "riscv64"):
return True