Skip to content

Commit

Permalink
.github: use same CFLAGS for both configure runs
Browse files Browse the repository at this point in the history
... otherwise configure will warn, and rightly so :)

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Jul 28, 2023
1 parent d828e19 commit cd25930
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
set -x
OPTS="--cache-file=/tmp/config.cache --prefix= --enable-mrdisc --enable-test"
./autogen.sh
./configure $OPTS
if [ "$CC" = "clang" ]; then
compat_valgrind="-gdwarf-4"
fi
./configure $OPTS CFLAGS="$compat_valgrind"
make dist && archive=$(ls *.tar.gz)
if [ -n "$archive" -a -f "$archive" ]; then
tar xf "$archive"
Expand All @@ -47,9 +50,6 @@ jobs:
fi
mkdir -p .build/dir
cd .build/dir
if [ "$CC" = "clang" ]; then
compat_valgrind="-gdwarf-4"
fi
../../configure $OPTS CFLAGS="$compat_valgrind"
chmod -R a+w .
- name: Build
Expand Down

0 comments on commit cd25930

Please sign in to comment.