Node builds against textproc/simdutf in ports - maybe better to patch there if
needed and perhaps webkitgtk4 can use it as well?

On 11/14/26 4:14 AM, Brad Smith wrote:
Backport the fix to the embedded copies of simdutf in Node and Webkitgtk4.
This should fix building on powerpc64.


Index: lang/node/patches/patch-deps_v8_third_party_simdutf_simdutf_h
===================================================================
RCS file: lang/node/patches/patch-deps_v8_third_party_simdutf_simdutf_h
diff -N lang/node/patches/patch-deps_v8_third_party_simdutf_simdutf_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lang/node/patches/patch-deps_v8_third_party_simdutf_simdutf_h       14 Nov 
2026 02:15:50 -0000
@@ -0,0 +1,15 @@
+- better guard for POWER
+  573d42d7dcb259902b80dcb8603f22da9e56241e
+
+Index: deps/v8/third_party/simdutf/simdutf.h
+--- deps/v8/third_party/simdutf/simdutf.h.orig
++++ deps/v8/third_party/simdutf/simdutf.h
+@@ -163,7 +163,7 @@
+ #elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
+   #define SIMDUTF_IS_ARM64 1
+ #elif defined(__PPC64__) || defined(_M_PPC64)
+-  #if defined(__VEC__) && defined(__ALTIVEC__)
++  #if defined(__VEC__) && defined(__ALTIVEC__) && defined(__POWER8_VECTOR__)
+     #define SIMDUTF_IS_PPC64 1
+   #endif
+ #elif defined(__s390__)
Index: www/webkitgtk4/patches/patch-Source_WTF_wtf_simdutf_simdutf_impl_h
===================================================================
RCS file: www/webkitgtk4/patches/patch-Source_WTF_wtf_simdutf_simdutf_impl_h
diff -N www/webkitgtk4/patches/patch-Source_WTF_wtf_simdutf_simdutf_impl_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ www/webkitgtk4/patches/patch-Source_WTF_wtf_simdutf_simdutf_impl_h  14 Nov 
2026 02:15:50 -0000
@@ -0,0 +1,15 @@
+- better guard for POWER
+  573d42d7dcb259902b80dcb8603f22da9e56241e
+
+Index: Source/WTF/wtf/simdutf/simdutf_impl.h
+--- Source/WTF/wtf/simdutf/simdutf_impl.h.orig
++++ Source/WTF/wtf/simdutf/simdutf_impl.h
+@@ -171,7 +171,7 @@
+ #elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
+   #define SIMDUTF_IS_ARM64 1
+ #elif defined(__PPC64__) || defined(_M_PPC64)
+-  #if defined(__VEC__) && defined(__ALTIVEC__)
++  #if defined(__VEC__) && defined(__ALTIVEC__) && defined(__POWER8_VECTOR__)
+     #define SIMDUTF_IS_PPC64 1
+   #endif
+ #elif defined(__s390__)

Reply via email to