summaryrefslogtreecommitdiff
path: root/recipes-extended/mozjs/files/riscv-support.patch
blob: b23f0853bc279e05aa4ef6535e1258d454da141e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Backport from upstream.

Index: a/mfbt/double-conversion/utils.h
===================================================================
--- a/mfbt/double-conversion/utils.h
+++ b/mfbt/double-conversion/utils.h
@@ -59,6 +59,7 @@
     defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
     defined(__SH4__) || defined(__alpha__) || \
     defined(__aarch64__) || \
+    defined(__riscv) || \
     defined(_MIPS_ARCH_MIPS32R2)
 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
 #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)