diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-04 23:11:49 +0200 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-04 23:58:57 +0200 |
commit | 4f31d1866e004ad7d8f349517f6a45c6e93be6fc (patch) | |
tree | 68a88c3eb5781777b4565d8be8d41b27a702dd80 | |
parent | www/py-qh3: fix build on powerpc64le (diff) |
lang/odin: fix build on powerpc*
Add the NOP instruction used by powerpc*.
-rw-r--r-- | lang/odin/files/patch-src_threading.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/odin/files/patch-src_threading.cpp b/lang/odin/files/patch-src_threading.cpp new file mode 100644 index 000000000000..54c6b85c7715 --- /dev/null +++ b/lang/odin/files/patch-src_threading.cpp @@ -0,0 +1,11 @@ +--- src/threading.cpp.orig 2025-07-04 20:51:54 UTC ++++ src/threading.cpp +@@ -532,6 +532,8 @@ gb_internal gb_inline void yield_thread(void) { + #elif defined(GB_CPU_RISCV) + // I guess? + __asm__ volatile ("nop" : : : "memory"); ++#elif defined(GB_CPU_PPC) ++ __asm__ volatile ("ori 0,0,0" : : : "memory"); + #else + #error Unknown architecture + #endif |