devel/godot: fix build on powerpc64*

JPH_DVECTOR_ALIGNMENT needs to match with JPH_VECTOR_ALIGNMENT.
This commit is contained in:
Piotr Kubaj
2025-08-13 17:26:09 +02:00
parent 501ab45bf5
commit ec1275fb97
2 changed files with 12 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ X11_MAKE_ARGS_OFF= x11=False
.include <bsd.port.options.mk>
.if ${ARCH:Mpowerpc*} || ${ARCH:Mriscv64*}
.if ${ARCH} == powerpc || ${ARCH:Mriscv64*}
MAKE_ARGS+= module_embree_enabled=no \
module_raycast_enabled=no \
module_webm_enabled=no

View File

@@ -0,0 +1,11 @@
--- thirdparty/jolt_physics/Jolt/Core/Core.h.orig 2025-08-13 15:24:56 UTC
+++ thirdparty/jolt_physics/Jolt/Core/Core.h
@@ -215,7 +215,7 @@
#define JPH_CPU_BIG_ENDIAN
#endif
#define JPH_VECTOR_ALIGNMENT 16
- #define JPH_DVECTOR_ALIGNMENT 8
+ #define JPH_DVECTOR_ALIGNMENT 16
#elif defined(__loongarch__)
// LoongArch CPU architecture
#define JPH_CPU_LOONGARCH