py-greenlet: fix the build with clang on powerpc
Use the same asm code that Linux/powerpc. segfaults occur at runtime, but it allows to build and make use of editors/neovim. "if it builds, ship it!" jca@
This commit is contained in:
parent
47722ebc01
commit
546587c580
@ -1,17 +1,18 @@
|
||||
$OpenBSD: patch-slp_platformselect_h,v 1.2 2015/10/18 14:49:04 czarkoff Exp $
|
||||
$OpenBSD: patch-slp_platformselect_h,v 1.3 2020/04/23 04:43:45 cwen Exp $
|
||||
Give it a chance to build on ppc & mips
|
||||
--- slp_platformselect.h.orig Sun May 31 19:06:02 2015
|
||||
+++ slp_platformselect.h Sat Oct 17 10:34:13 2015
|
||||
@@ -20,6 +20,8 @@
|
||||
Index: slp_platformselect.h
|
||||
--- slp_platformselect.h.orig
|
||||
+++ slp_platformselect.h
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "platform/switch_x86_unix.h" /* gcc on X86 */
|
||||
#elif defined(__GNUC__) && defined(__powerpc64__) && defined(__linux__)
|
||||
#include "platform/switch_ppc64_linux.h" /* gcc on PowerPC 64-bit */
|
||||
-#elif defined(__GNUC__) && defined(__PPC__) && defined(__linux__)
|
||||
+#elif defined(__GNUC__) && defined(__PPC__) && defined(__OpenBSD__)
|
||||
#include "platform/switch_ppc_linux.h" /* gcc on PowerPC */
|
||||
#elif defined(__GNUC__) && defined(__ppc__) && defined(__APPLE__)
|
||||
#include "platform/switch_ppc_macosx.h" /* Apple MacOS X on PowerPC */
|
||||
#elif defined(__GNUC__) && defined(_ARCH_PPC) && defined(_AIX)
|
||||
#include "platform/switch_ppc_aix.h" /* gcc on AIX/PowerPC */
|
||||
+#elif defined(__GNUC__) && defined(__powerpc__)
|
||||
+#include "platform/switch_ppc_unix.h" /* gcc on unix/PowerPC */
|
||||
#elif defined(__GNUC__) && defined(sparc)
|
||||
#include "platform/switch_sparc_sun_gcc.h" /* SunOS sparc with gcc */
|
||||
#elif defined(__SUNPRO_C) && defined(sparc) && defined(sun)
|
||||
@@ -41,7 +43,7 @@
|
||||
@@ -41,7 +41,7 @@
|
||||
#else
|
||||
#include "platform/switch_arm32_gcc.h" /* gcc using arm32 */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user