Skip to content

Commit 1df277f

Browse files
awvwgkLKedward
andauthored
Add GCC-11 to workflow (#417)
Remove -pedantic-errors flag for gcc-11. Update table in README regarding supported compiler versions Co-authored-by: Laurence Kedward <[email protected]>
1 parent 7b509a2 commit 1df277f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-latest, macos-latest]
24-
gcc_v: [7, 8, 9, 10] # Version of GFortran we want to use.
24+
gcc_v: [7, 8, 9, 10, 11] # Version of GFortran we want to use.
2525
env:
2626
FC: gfortran-${{ matrix.gcc_v }}
2727
GCC_V: ${{ matrix.gcc_v }}

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
2424
add_compile_options(-Wconversion-extra)
2525
# -pedantic-errors triggers a false positive for optional arguments of elemental functions,
2626
# see test_optval and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95446
27-
add_compile_options(-pedantic-errors)
27+
if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 11.0)
28+
add_compile_options(-pedantic-errors)
29+
endif()
2830
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
2931
add_compile_options(-std=f2018)
3032
else()

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ The following combinations are tested on the default branch of stdlib:
8787

8888
Name | Version | Platform | Architecture
8989
--- | --- | --- | ---
90-
GCC Fortran | 7, 8, 9, 10 | Ubuntu 20.04 | x86_64
91-
GCC Fortran | 7, 8, 9, 10 | MacOS Catalina 10.15 | x86_64
90+
GCC Fortran | 7, 8, 9, 10, 11 | Ubuntu 20.04 | x86_64
91+
GCC Fortran | 7, 8, 9, 10, 11 | MacOS Catalina 10.15 | x86_64
9292
GCC Fortran | 8 | Windows Server 2019 | x86_64
9393
GCC Fortran (MSYS) | 10 | Windows Server 2019 | x86_64
9494
GCC Fortran (MinGW) | 10 | Windows Server 2019 | x86_64, i686

0 commit comments

Comments
 (0)