Skip to content

Commit 0bab05c

Browse files
authored
Merge pull request #251 from skirpichev/update-msys2/244
Update msys2/setup-msys2 action
2 parents 21faf9d + 404a161 commit 0bab05c

File tree

4 files changed

+37
-5
lines changed

4 files changed

+37
-5
lines changed

.github/workflows/os.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- uses: actions/setup-python@v5
1919
with:
2020
python-version: "3.x"
21+
- run: brew install autoconf automake libtool
22+
if: ${{ startsWith(matrix.os, 'macos') }}
2123
- name: Cache GNU GMP builds
2224
id: cache-gmp
2325
uses: actions/cache@v4

.github/workflows/wheels.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
15-
- uses: msys2/setup-msys2@v2.27.0
15+
- uses: msys2/setup-msys2@v2.28.0
1616
name: Setup msys2
1717
with:
1818
install: >-
@@ -21,6 +21,8 @@ jobs:
2121
patch
2222
msystem: ucrt64
2323
if: ${{ startsWith(matrix.os, 'windows') }}
24+
- run: brew install autoconf automake libtool
25+
if: ${{ startsWith(matrix.os, 'macos') }}
2426
# Install pkgconfig on Windows from choco rather than from msys and
2527
# avoid using the Strawberry one.
2628
- run: choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite

scripts/cibw_before_all.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ curl -s -O https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz
1111
tar -xf gmp-${GMP_VERSION}.tar.xz
1212
cd gmp-${GMP_VERSION}
1313
patch -N -Z -p1 < ../scripts/fat_build_fix.diff
14-
if [ "$OSTYPE" = "msys" ] || [ "$OSTYPE" = "cygwin" ]
15-
then
16-
patch -N -Z -p0 < ../scripts/dll-importexport.diff
17-
fi
14+
patch -N -Z -p0 < ../scripts/dll-importexport.diff
15+
patch -N -Z -p1 < ../scripts/gcc15.diff
16+
autoreconf -fi
1817

1918
unset CFLAGS
2019

scripts/gcc15.diff

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
changeset: 18477:8e7bb4ae7a18
2+
user: Marc Glisse <[email protected]>
3+
date: Wed Jan 29 22:38:02 2025 +0100
4+
summary: Complete function prototype in acinclude.m4 for C23 compatibility
5+
6+
#diff -r e84c5c785bbe -r 8e7bb4ae7a18 ChangeLog
7+
#--- a/ChangeLog Wed Dec 04 18:26:27 2024 +0100
8+
#+++ b/ChangeLog Wed Jan 29 22:38:02 2025 +0100
9+
#@@ -1,3 +1,8 @@
10+
#+2025-01-29 Rudi Heitbaum <[email protected]>
11+
#+ Marc Glisse <[email protected]>
12+
#+
13+
#+ * acinclude.m4: Complete function prototype.
14+
#+
15+
# 2024-05-15 Sven Anderson <[email protected]>
16+
#
17+
# * mpn/x86_64/fat/fat.c: Fix bug in BMI2 detection.
18+
diff -r e84c5c785bbe -r 8e7bb4ae7a18 acinclude.m4
19+
--- a/acinclude.m4 Wed Dec 04 18:26:27 2024 +0100
20+
+++ b/acinclude.m4 Wed Jan 29 22:38:02 2025 +0100
21+
@@ -609,7 +609,7 @@
22+
23+
#if defined (__GNUC__) && ! defined (__cplusplus)
24+
typedef unsigned long long t1;typedef t1*t2;
25+
-void g(){}
26+
+void g(int,t1 const*,t1,t2,t1 const*,int){}
27+
void h(){}
28+
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
29+
{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}

0 commit comments

Comments
 (0)