vcpkg/ports/openexr/0003-fix-arm-intrin-detection-pr-1216.patch
Alex 079a19c9bb
openexr: Bump version to 2.5.8, clean patches and fix ARM (#26503)
* openexr: Bump to 2.5.8

The x-add-version and patch fixes will be in next commits.

* openexr: vcpkg.json: Use "version" instead of "version-string"

* openexr: vcpkg.json: Add SPDX license identifier

* openexr: Clean 0001*-find_package patch

As upstream has cleaned it up already.

* openexr: Clean 0002-fixup_cmake_exports** patch from old whitespace fix

The upstream was already fixed it.

* openexr: Drop symlinks and find-pkg patches as it were handled at upstream

* openexr: Fix ARM build

See upstream fix for details in openexr/openexr#1216:
https://github.com/AcademySoftwareFoundation/openexr/pull/1216

* openexr: Migrate the old function to new vcpkg-cmake-config helpers

* openexr/portfile: Add comment about version for commit revision

* openexr: Update baseline via `vcpkg x-add-version openexr'
2022-08-31 13:44:21 -07:00

14 lines
410 B
Diff

diff --git a/src/lib/OpenEXR/ImfSimd.h b/src/lib/OpenEXR/ImfSimd.h
index 810e7ccc3..9bb4e11ae 100644
--- a/OpenEXR/IlmImf/ImfSimd.h
+++ b/OpenEXR/IlmImf/ImfSimd.h
@@ -14,7 +14,7 @@
// GCC and Visual Studio SSE2 compiler flags
-#if defined __SSE2__ || (_MSC_VER >= 1300 && !_M_CEE_PURE)
+#if defined __SSE2__ || (_MSC_VER >= 1300 && (_M_IX86 || _M_X64))
#define IMF_HAVE_SSE2 1
#endif