Skip to content

Commit 176b82c

Browse files
committed
ci_build.sh: allow passing --enable-warnings=... and --enable-Werror=... args via BUILD_WARNOPT and BUILD_WARNFATAL envvars
1 parent 310f2b1 commit 176b82c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci_build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@ default|default-alldrv|default-all-errors|default-spellcheck|default-shellcheck|
291291
CCACHE_BASEDIR="${PWD}"
292292
export CCACHE_BASEDIR
293293

294+
if [ -n "${BUILD_WARNOPT-}" ]; then
295+
CONFIG_OPTS+=("--enable-warnings=${BUILD_WARNOPT}")
296+
fi
297+
298+
if [ -n "${BUILD_WARNFATAL-}" ]; then
299+
CONFIG_OPTS+=("--enable-Werror=${BUILD_WARNFATAL}")
300+
fi
301+
294302
# Note: modern auto(re)conf requires pkg-config to generate the configure
295303
# script, so to stage the situation of building without one (as if on an
296304
# older system) we have to remove it when we already have the script.

0 commit comments

Comments
 (0)