Skip to content

Commit 780fe68

Browse files
authored
build: Fix broken OIIO_NO_NEON definition (#3911)
Clean up the `#if` tests that disable Intel SIMD when not on Intel architectures, which incorrectly disabled ARM NEON when on ARM. Fixes #3909 Signed-off-by: Larry Gritz <[email protected]>
1 parent b1f5265 commit 780fe68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/include/OpenImageIO/simd.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@
9595
# ifndef OIIO_NO_AVX2
9696
# define OIIO_NO_AVX2 1
9797
# endif
98+
#endif
99+
100+
#if !(defined(_M_ARM64) || defined(__aarch64) || defined(__aarch64__)) || defined(__CUDA_ARCH__)
98101
# ifndef OIIO_NO_NEON
99102
# define OIIO_NO_NEON 1
100103
# endif

0 commit comments

Comments
 (0)