Skip to content

Commit cd25930

Browse files
committed
.github: use same CFLAGS for both configure runs
... otherwise configure will warn, and rightly so :) Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent d828e19 commit cd25930

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
set -x
3939
OPTS="--cache-file=/tmp/config.cache --prefix= --enable-mrdisc --enable-test"
4040
./autogen.sh
41-
./configure $OPTS
41+
if [ "$CC" = "clang" ]; then
42+
compat_valgrind="-gdwarf-4"
43+
fi
44+
./configure $OPTS CFLAGS="$compat_valgrind"
4245
make dist && archive=$(ls *.tar.gz)
4346
if [ -n "$archive" -a -f "$archive" ]; then
4447
tar xf "$archive"
@@ -47,9 +50,6 @@ jobs:
4750
fi
4851
mkdir -p .build/dir
4952
cd .build/dir
50-
if [ "$CC" = "clang" ]; then
51-
compat_valgrind="-gdwarf-4"
52-
fi
5353
../../configure $OPTS CFLAGS="$compat_valgrind"
5454
chmod -R a+w .
5555
- name: Build

0 commit comments

Comments
 (0)