From 7be70ff81357fd96d59ae92731138f1375352bd4 Mon Sep 17 00:00:00 2001
From: Ben Hsing
Date: Mon, 9 Sep 2024 18:02:29 +0800
Subject: [PATCH 1/3] gh-123681: handle c99-specific specifiers when
cross-compiling
---
configure | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 54982ab2aad9aa9..a40ec3b4402dddc 100755
--- a/configure
+++ b/configure
@@ -26205,7 +26205,7 @@ else $as_nop
if test "$cross_compiling" = yes
then :
- ac_cv_strftime_c99_support=no
+ ac_cv_strftime_c99_support=yes
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
diff --git a/configure.ac b/configure.ac
index 32e673e83e52d5b..2d76254a6ec4926 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6724,7 +6724,7 @@ int main(void)
]])],
[ac_cv_strftime_c99_support=yes],
[ac_cv_strftime_c99_support=no],
-[ac_cv_strftime_c99_support=no])])
+[ac_cv_strftime_c99_support=yes])])
if test "$ac_cv_strftime_c99_support" = yes
then
AC_DEFINE([Py_STRFTIME_C99_SUPPORT], [1],
From b9a53f4c692ad7c4bff986a4b5c9ff9f4a4c1ec1 Mon Sep 17 00:00:00 2001
From: blhsing
Date: Mon, 9 Sep 2024 21:05:30 +0800
Subject: [PATCH 2/3] updated optimizer.c to triger JIT checks
---
Python/optimizer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/Python/optimizer.c b/Python/optimizer.c
index 9198e410627dd4e..ff9e93222252de4 100644
--- a/Python/optimizer.c
+++ b/Python/optimizer.c
@@ -1,3 +1,4 @@
+/* edited to trigger JIT checks */
#ifdef _Py_TIER2
#include "Python.h"
From b7556d58d3cbf8567d9617ceb81668903f66c503 Mon Sep 17 00:00:00 2001
From: blhsing
Date: Mon, 9 Sep 2024 22:34:48 +0800
Subject: [PATCH 3/3] reverted hacky update to optimizer.c
---
Python/optimizer.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/Python/optimizer.c b/Python/optimizer.c
index ff9e93222252de4..9198e410627dd4e 100644
--- a/Python/optimizer.c
+++ b/Python/optimizer.c
@@ -1,4 +1,3 @@
-/* edited to trigger JIT checks */
#ifdef _Py_TIER2
#include "Python.h"