Commit 7bdc63b5 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Fixed build on ARMv7

parent 153965eb
......@@ -8,6 +8,7 @@ mozjs:
tar xf firefox-68.11.0esr.source.tar.xz
patch -Np1 -d firefox-68.11.0 < firefox-68.11.0-no_rust.patch
patch -Np1 -d firefox-68.11.0 < firefox-68.11.0-fix_armv7.patch
mkdir -p firefox-68.11.0/obj
cd firefox-68.11.0/obj && PATH=/build/usr/bin:$$PATH SHELL=/bin/bash CC=gcc CXX=g++ LLVM_OBJDUMP=/bin/false ../js/src/configure --prefix=/usr --with-intl-api --with-system-zlib --with-system-icu --disable-jemalloc --disable-debug-symbols --enable-readline
$(MAKE) -C firefox-68.11.0/obj SHELL=/bin/bash
......
diff -uNr firefox-68.11.0/js/src/wasm/WasmSignalHandlers.cpp firefox-68.11.0-fix_armv7/js/src/wasm/WasmSignalHandlers.cpp
--- firefox-68.11.0/js/src/wasm/WasmSignalHandlers.cpp 2020-07-21 06:33:11.000000000 +0930
+++ firefox-68.11.0-fix_armv7/js/src/wasm/WasmSignalHandlers.cpp 2021-08-01 03:18:55.385132240 +0930
@@ -248,7 +248,16 @@
#endif
#ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
-# include <sys/user.h>
+struct user_vfp {
+ unsigned long long fpregs[32];
+ unsigned long fpscr;
+};
+
+struct user_vfp_exc {
+ unsigned long fpexc;
+ unsigned long fpinst;
+ unsigned long fpinst2;
+};
#endif
#if defined(ANDROID)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment