Skip to contentSkip to conversation

mozjs: Disable JIT on mips

PATCH New Khem Raj 1 participant 1 message Oct 15, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 mozjs: Disable JIT on mips

Fixes
error: static assertion failed: MIPS32 jit only supports FR=0 fpu mode

---
 .../meta-python/recipes-extended/mozjs/mozjs_91.1.0.bb     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_91.1.0.bb +6 -1
index 2f72ff8924..1346cf5879 100644
@@ -31,6 +31,10 @@ export AS = "${CC}"
 
 export RUSTFLAGS
 
+JIT ?= ""
+
+JIT_mipsarch = "--disable-jit"
+
 do_configure() {
     cd ${B}
     python3 ${S}/configure.py \
@@ -39,7 +43,8 @@ do_configure() {
         --host=${BUILD_SYS} \
         --prefix=${prefix} \
         --libdir=${libdir} \
-        --disable-jemalloc
+        --disable-jemalloc \
+        ${JIT} \
 
 }
 
Signature · 1 line
2.33.1