Skip to content

Commit

Permalink
use different patch for ppc853x to avoid undefined static_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Mar 3, 2024
1 parent 22673d9 commit 7f7056b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 40 deletions.
2 changes: 1 addition & 1 deletion cross/python311/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CONFIGURE_ARGS = --enable-shared
CONFIGURE_ARGS += --without-static-libpython
CONFIGURE_ARGS += --enable-ipv6
# installed pip is not on PATH
CONFIGURE_ARGS += --with-ensurepip=no
CONFIGURE_ARGS += --without-ensurepip
CONFIGURE_ARGS += --enable-loadable-sqlite-extensions
CONFIGURE_ARGS += --with-computed-gotos=yes
CONFIGURE_ARGS += --with-build-python
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# gcc 4.3.2 is lacking static_assert for c code (available for c++ code only).
#
# Since static_assert acts at compile time only, it does not affect the runtime
# behaviour when omitting the implementation.
#
--- Include/pymacro.h.orig 2023-08-24 12:09:18.000000000 +0000
+++ Include/pymacro.h 2024-03-02 18:15:00.033365138 +0000
@@ -21,6 +21,8 @@
&& defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
&& __STDC_VERSION__ <= 201710L
# define static_assert _Static_assert
+#else
+# define static_assert
#endif

/* Minimum value between x and y */

This file was deleted.

0 comments on commit 7f7056b

Please sign in to comment.