Skip to content

Commit

Permalink
github: test with --enable-debug=no configure option
Browse files Browse the repository at this point in the history
In this case, only test it with clang. It seems not worth building
everything twice toggling only this option.
  • Loading branch information
thom311 committed Apr 22, 2024
1 parent 5873497 commit 573c728
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,17 @@ jobs:
export CC="${{ matrix.cc }}"
export CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11 -fexceptions"
CONFIGURE_ARGS=
if [ "$CC" = "clang" ]; then
CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function"
export LDFLAGS="-Wl,--no-undefined-version,--fatal-warnings"
CONFIGURE_ARGS="--enable-debug=no"
else
export LDFLAGS="-Wl,--no-undefined-version"
fi
./autogen.sh
./configure
./configure $CONFIGURE_ARGS
make -j 5
shell: bash

Expand Down

0 comments on commit 573c728

Please sign in to comment.