summarylogtreecommitdiffstats
path: root/0102-squash-CI-use-O2.patch
diff options
context:
space:
mode:
Diffstat (limited to '0102-squash-CI-use-O2.patch')
-rw-r--r--0102-squash-CI-use-O2.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/0102-squash-CI-use-O2.patch b/0102-squash-CI-use-O2.patch
new file mode 100644
index 000000000000..0814327e35d7
--- /dev/null
+++ b/0102-squash-CI-use-O2.patch
@@ -0,0 +1,30 @@
+From 16dd9f42f911def97236f58be72d6d6aa023373e Mon Sep 17 00:00:00 2001
+From: Christoph Reiter <reiter.christoph@gmail.com>
+Date: Fri, 2 Jul 2021 15:01:54 +0200
+Subject: [PATCH 102/N] [squash] CI: use -O2
+
+Without optimizations the stack size increases and tests start to fail
+with stack overflow (this is a known problem upstream https://bugs.python.org/issue43271)
+
+Either we enforce -O2 or we increase the stack size.
+
+Needs to be merged into the CI setup
+---
+ .github/workflows/mingw.yml | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml
+index fff5fa5..8486bb4 100644
+--- a/.github/workflows/mingw.yml
++++ b/.github/workflows/mingw.yml
+@@ -52,6 +52,7 @@ jobs:
+ set -ex
+ pkgver='3.9.5'
+ _pybasever='3.9'
++ CFLAGS="-O2"
+
+ PREFIX_WIN=$(cygpath -wm ${MINGW_PREFIX})
+ if [ ${{ matrix.msystem }} == "CLANG64" ]
+--
+2.32.0
+