Build: Add patch to OIIO fixing Windows ARM64 + clang
Pull Request: https://projects.blender.org/blender/blender/pulls/126331
This commit is contained in:
@@ -142,7 +142,10 @@ ExternalProject_Add(external_openimageio
|
||||
${PATCH_DIR}/oiio_4062.diff &&
|
||||
${PATCH_CMD} -p 1 -N -d
|
||||
${BUILD_DIR}/openimageio/src/external_openimageio/ <
|
||||
${PATCH_DIR}/oiio_4302.diff
|
||||
${PATCH_DIR}/oiio_4302.diff &&
|
||||
${PATCH_CMD} -p 1 -N -d
|
||||
${BUILD_DIR}/openimageio/src/external_openimageio/ <
|
||||
${PATCH_DIR}/oiio_windows_arm64.diff
|
||||
CMAKE_ARGS
|
||||
-DCMAKE_INSTALL_PREFIX=${LIBDIR}/openimageio
|
||||
${DEFAULT_CMAKE_FLAGS}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git a/src/include/OpenImageIO/simd.h b/src/include/OpenImageIO/simd.h
|
||||
index b1701946f..d148a89d3 100644
|
||||
--- a/src/include/OpenImageIO/simd.h
|
||||
+++ b/src/include/OpenImageIO/simd.h
|
||||
@@ -119,6 +119,9 @@
|
||||
// Cuda -- don't include any of these headers
|
||||
#elif defined(_WIN32)
|
||||
# include <intrin.h>
|
||||
+# if defined(__ARM_NEON__) && !defined(OIIO_NO_NEON)
|
||||
+# include <arm_neon.h>
|
||||
+# endif
|
||||
#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) || defined(__e2k__)
|
||||
# include <x86intrin.h>
|
||||
#elif defined(__GNUC__) && defined(__ARM_NEON__) && !defined(OIIO_NO_NEON)
|
||||
Reference in New Issue
Block a user