aboutsummaryrefslogtreecommitdiff
path: root/ports/selene
diff options
context:
space:
mode:
Diffstat (limited to 'ports/selene')
-rw-r--r--ports/selene/disable_x86_intrinsics_on_arm.patch13
-rw-r--r--ports/selene/portfile.cmake2
2 files changed, 15 insertions, 0 deletions
diff --git a/ports/selene/disable_x86_intrinsics_on_arm.patch b/ports/selene/disable_x86_intrinsics_on_arm.patch
new file mode 100644
index 000000000..79e38c57c
--- /dev/null
+++ b/ports/selene/disable_x86_intrinsics_on_arm.patch
@@ -0,0 +1,13 @@
+diff --git a/selene/base/Bitcount.hpp b/selene/base/Bitcount.hpp
+index a4d69e4..709f650 100755
+--- a/selene/base/Bitcount.hpp
++++ b/selene/base/Bitcount.hpp
+@@ -69,7 +69,7 @@ inline std::size_t bit_count(unsigned long long x)
+ return static_cast<std::size_t>(__builtin_popcountll(x));
+ }
+
+-#elif defined(_MSC_VER)
++#elif defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64)
+
+ /** \brief Performs a bit count on the supplied value.
+ *
diff --git a/ports/selene/portfile.cmake b/ports/selene/portfile.cmake
index 97f05a38b..f45c84460 100644
--- a/ports/selene/portfile.cmake
+++ b/ports/selene/portfile.cmake
@@ -8,6 +8,8 @@ vcpkg_from_github(
REF v0.3.1
SHA512 7bc57ebe9e2442da2716eb5c1af11f8d610b0b09fe96e3122d1028575732b6045a987c499bbf7de53003edd627b8809d86c80ea4975fc2264a1c61d5891a46c3
HEAD_REF master
+ PATCHES
+ disable_x86_intrinsics_on_arm.patch
)
vcpkg_configure_cmake(