Skip to content

Commit 91d3f21

Browse files
authored
Merge pull request #29436 from zebreus/main
BLD: allow targeting webassembly without emscripten
2 parents 48e8b54 + a4906a7 commit 91d3f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/_core/src/multiarray/lowlevel_strided_loops.c.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ NPY_NO_EXPORT PyArrayMethod_StridedLoop *
850850
// Enable auto-vectorization for floating point casts with clang
851851
#if @is_native_half1@ || @is_float1@ || @is_double1@
852852
#if @is_native_half2@ || @is_float2@ || @is_double2@
853-
#if defined(__clang__) && !defined(__EMSCRIPTEN__)
853+
#if defined(__clang__) && !defined(__EMSCRIPTEN__) && !defined(__wasm__)
854854
#if __clang_major__ >= 12
855855
_Pragma("clang fp exceptions(ignore)")
856856
#endif
@@ -965,7 +965,7 @@ static GCC_CAST_OPT_LEVEL int
965965

966966
#if @is_native_half1@ || @is_float1@ || @is_double1@
967967
#if @is_native_half2@ || @is_float2@ || @is_double2@
968-
#if defined(__clang__) && !defined(__EMSCRIPTEN__)
968+
#if defined(__clang__) && !defined(__EMSCRIPTEN__) && !defined(__wasm__)
969969
#if __clang_major__ >= 12
970970
_Pragma("clang fp exceptions(strict)")
971971
#endif

0 commit comments

Comments
 (0)