Skip to content

Commit 30afc62

Browse files
authored
use get_line from the updated stdlib (#149)
1 parent 66cda4f commit 30afc62

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/build.yaml

+13-13
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
os: [ubuntu-latest, macos-12, windows-latest]
13-
gcc: [10]
12+
os: [ubuntu-latest, macos-13, windows-latest]
13+
gcc: [13]
1414

1515
steps:
1616
- name: Checkout repository
@@ -21,17 +21,17 @@ jobs:
2121
run: |
2222
brew install gcc@${{ matrix.gcc }}
2323
ln -s /usr/local/bin/gfortran-${{ matrix.gcc }} /usr/local/bin/gfortran
24-
# Backport gfortran shared libraries to version 9 folder. This is necessary because all macOS releases of fpm
25-
# have these paths hardcoded in the executable (no PIC?). As the gcc ABIs have not changed from 9 to 10, we
26-
# can just create symbolic links for now. This can be removed when an updated fpm release is built with gcc-10
27-
mkdir /usr/local/opt/gcc@9
28-
mkdir /usr/local/opt/gcc@9/lib
29-
mkdir /usr/local/opt/gcc@9/lib/gcc
30-
mkdir /usr/local/opt/gcc@9/lib/gcc/9
31-
mkdir /usr/local/lib/gcc/9
32-
ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libquadmath.0.dylib /usr/local/opt/gcc@9/lib/gcc/9/libquadmath.0.dylib
33-
ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libgfortran.5.dylib /usr/local/opt/gcc@9/lib/gcc/9/libgfortran.5.dylib
34-
ln -fs /usr/local/lib/gcc/${{ matrix.gcc }}/libgcc_s.1.dylib /usr/local/lib/gcc/9/libgcc_s.1.dylib
24+
# Backport gfortran shared libraries to version 10 folder. This is necessary because all macOS releases of fpm
25+
# have these paths hardcoded in the executable (no PIC?). As the gcc ABIs have not changed from 10 to 13, we
26+
# can just create symbolic links for now. This can be removed when an updated fpm release is built with gcc-13
27+
mkdir /usr/local/opt/gcc@10
28+
mkdir /usr/local/opt/gcc@10/lib
29+
mkdir /usr/local/opt/gcc@10/lib/gcc
30+
mkdir /usr/local/opt/gcc@10/lib/gcc/10
31+
mkdir /usr/local/lib/gcc/10
32+
ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libquadmath.0.dylib /usr/local/opt/gcc@10/lib/gcc/10/libquadmath.0.dylib
33+
ln -fs /usr/local/opt/gcc@${{ matrix.gcc }}/lib/gcc/${{ matrix.gcc }}/libgfortran.5.dylib /usr/local/opt/gcc@10/lib/gcc/10/libgfortran.5.dylib
34+
ln -fs /usr/local/lib/gcc/${{ matrix.gcc }}/libgcc_s.1.dylib /usr/local/lib/gcc/10/libgcc_s.1.dylib
3535
3636
- name: Install GFortran (Linux)
3737
if: ${{ contains(matrix.os, 'ubuntu') }}

src/tutorial/dependencies/src/demo.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module demo
2-
use stdlib_io, only : getline
2+
use stdlib_io, only : get_line
33
use stdlib_strings, only : replace_all
44
implicit none
55
private
@@ -23,7 +23,7 @@ subroutine substitute(input, output, pattern, replacement)
2323
integer :: stat
2424

2525
do
26-
call getline(input, line, stat)
26+
call get_line(input, line, stat)
2727
if (stat /= 0) exit
2828
write(output, '(a)') replace_all(line, pattern, replacement)
2929
end do

0 commit comments

Comments
 (0)