File: js-arm-i386-no-simd.patch

package info (click to toggle)
mozjs140 140.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,216,316 kB
  • sloc: javascript: 2,267,091; cpp: 1,423,458; python: 966,189; ansic: 632,256; xml: 115,965; sh: 15,391; asm: 13,397; makefile: 10,455; yacc: 4,504; perl: 2,223; lex: 1,414; ruby: 1,064; exp: 756; java: 185; sql: 66; sed: 18
file content (25 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Adrian Bunk <bunk@debian.org>
Date: Mon, 19 Sep 2022 20:16:52 +0300
Subject: Disable SIMD on 32-bit ARM and x86

SIMD (SSE/NEON) is not in the baseline of the i386/armel/armhf ports.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1786619
Bug-Debian: https://bugs.debian.org/1017961
---
 js/moz.configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/moz.configure b/js/moz.configure
index 7a9506d..e617ac3 100644
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -644,7 +644,7 @@ option(
 def rust_simd(value, target):
     # As of 2019-09-17, the simd-accel feature of encoding_rs has not
     # been properly set up outside aarch64, armv7, x86 and x86_64.
-    if target.cpu in ("aarch64", "arm", "x86", "x86_64") and value:
+    if target.cpu in ("aarch64", "x86_64") and value:
         return True