Skip to content

Commit 4c8fd85

Browse files
authored
Merge pull request #29053 from zebreus/allow-targeting-webassembly-without-emscripten
BLD: allow targeting webassembly without emscripten
2 parents b353a18 + 3d4629c commit 4c8fd85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/_core/include/numpy/npy_cpu.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@
111111
#endif
112112
#elif defined(__loongarch_lp64)
113113
#define NPY_CPU_LOONGARCH64
114-
#elif defined(__EMSCRIPTEN__)
114+
#elif defined(__EMSCRIPTEN__) || defined(__wasm__)
115115
/* __EMSCRIPTEN__ is defined by emscripten: an LLVM-to-Web compiler */
116+
/* __wasm__ is defined by clang when targeting wasm */
116117
#define NPY_CPU_WASM
117118
#else
118119
#error Unknown CPU, please report this to numpy maintainers with \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy