Skip to content

Commit 0050c33

Browse files
committed
support GCC 13
1 parent ce5c4b3 commit 0050c33

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- windows-2022
2929
- windows-2019
3030
toolchain:
31+
# {compiler: gcc, version: 13}
3132
- {compiler: gcc, version: 12}
3233
- {compiler: gcc, version: 11}
3334
- {compiler: gcc, version: 10}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- *intel* (for `ifx`)
6060
- *intel-classic* (for `ifort`)
6161
- *version*: Version of the compiler toolchain, available options are
62-
- *5–12* for *gcc*
62+
- *5–13* for *gcc*
6363
- *2021.1–2023.1* for *intel*
6464
- *2021.1–2021.9* for *intel-classic*
6565

setup-fortran.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install_gcc_brew()
2323
ln -fs /usr/local/bin/g++-${version} /usr/local/bin/g++
2424

2525
# link lib dir for previous GCC versions to avoid missing .dylib issues
26-
for (( i=12; i>4; i-- ))
26+
for (( i=13; i>4; i-- ))
2727
do
2828
gcc_lib_path="/usr/local/opt/gcc/lib/gcc/$i"
2929
if [ -d $gcc_lib_path ]; then
@@ -58,7 +58,10 @@ install_gcc_apt()
5858

5959
install_gcc_choco()
6060
{
61-
case $version in
61+
case $version ina
62+
13)
63+
choco install mingw --version 13.1.0 --force
64+
;;
6265
12)
6366
choco install mingw --version 12.2.0 --force
6467
;;
@@ -75,7 +78,7 @@ install_gcc_choco()
7578
choco install mingw --version 8.5.0 --force
7679
;;
7780
*)
78-
echo "Unsupported version: $version (choose 8-12)"
81+
echo "Unsupported version: $version (choose 8-13)"
7982
exit 1
8083
;;
8184
esac
@@ -96,6 +99,10 @@ install_gcc_winlibs()
9699
{
97100
repo="https://github.com/brechtsanders/winlibs_mingw/releases/download"
98101
case $version in
102+
13)
103+
tag="13.0.1-snapshot20230402-11.0.0-ucrt-r1"
104+
zip="winlibs-x86_64-mcf-seh-gcc-13.0.1-snapshot20230402-mingw-w64ucrt-11.0.0-r1.zip"
105+
;;
99106
12)
100107
tag="12.2.0-14.0.6-10.0.0-ucrt-r2"
101108
zip="winlibs-x86_64-posix-seh-gcc-12.2.0-mingw-w64ucrt-10.0.0-r2.zip"

0 commit comments

Comments
 (0)