mirror of https://github.com/pyodide/pyodide.git
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
|
diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h
|
||
|
index 84653ea18..ca25a5715 100644
|
||
|
--- a/numpy/core/include/numpy/npy_cpu.h
|
||
|
+++ b/numpy/core/include/numpy/npy_cpu.h
|
||
|
@@ -82,6 +82,8 @@
|
||
|
#define NPY_CPU_ARCEL
|
||
|
#elif defined(__arc__) && defined(__BIG_ENDIAN__)
|
||
|
#define NPY_CPU_ARCEB
|
||
|
+#elif defined(__EMSCRIPTEN__)
|
||
|
+ #define NPY_CPU_EMSCRIPTEN
|
||
|
#else
|
||
|
#error Unknown CPU, please report this to numpy maintainers with \
|
||
|
information about your platform (OS, CPU and compiler)
|
||
|
diff --git a/numpy/core/include/numpy/npy_endian.h b/numpy/core/include/numpy/npy_endian.h
|
||
|
index 1a42121db..5a43b14a8 100644
|
||
|
--- a/numpy/core/include/numpy/npy_endian.h
|
||
|
+++ b/numpy/core/include/numpy/npy_endian.h
|
||
|
@@ -46,7 +46,8 @@
|
||
|
|| defined(NPY_CPU_SH_LE) \
|
||
|
|| defined(NPY_CPU_MIPSEL) \
|
||
|
|| defined(NPY_CPU_PPC64LE) \
|
||
|
- || defined(NPY_CPU_ARCEL)
|
||
|
+ || defined(NPY_CPU_ARCEL) \
|
||
|
+ || defined(NPY_CPU_EMSCRIPTEN)
|
||
|
#define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN
|
||
|
#elif defined(NPY_CPU_PPC) \
|
||
|
|| defined(NPY_CPU_SPARC) \
|