Skip to content

Commit 43ca7a5

Browse files
committed
Set libomp flags (and other brew library flags) for both builds
1 parent 3afb946 commit 43ca7a5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/test_build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ jobs:
118118
echo `brew --prefix make `/libexec/gnubin >> $GITHUB_PATH
119119
echo `brew --prefix libtool`/libexec/gnubin >> $GITHUB_PATH
120120
echo `brew --prefix bison`/bin >> $GITHUB_PATH
121+
echo "CPPFLAGS=-I$(brew --prefix)/include -I$(brew --prefix libomp)/include -I$(brew --prefix readline)/include" >> $GITHUB_ENV
122+
echo "LDFLAGS= -L$(brew --prefix)/lib -L$(brew --prefix libomp)/lib -L$(brew --prefix readline)/lib" >> $GITHUB_ENV
121123
fi
122124
123125
- uses: actions/cache@v4
@@ -166,12 +168,6 @@ jobs:
166168
if: matrix.build-system == 'autotools'
167169
run: |
168170
../../autogen.sh
169-
export CPPFLAGS="-I`brew --prefix`/include \
170-
-I`brew --prefix libomp`/include \
171-
-I`brew --prefix readline`/include"
172-
export LDFLAGS="-L`brew --prefix`/lib \
173-
-L`brew --prefix libomp`/lib \
174-
-L`brew --prefix readline`/lib"
175171
export F77=gfortran-14
176172
export FC=gfortran-14
177173
../../configure --with-system-gc --with-fplll

0 commit comments

Comments
 (0)