aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ci-run.sh
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2022-05-16 18:32:51 +0200
committerXiretza <xiretza@xiretza.xyz>2022-05-16 18:47:33 +0200
commit9217cecc8bee7b2a6759f38eafb823703c9d0617 (patch)
tree0dc5a5acf762c74e59378b783fc272b83ab3705a /scripts/ci-run.sh
parentc2475bd22f647ebea751171fc6376e0b2c872fb7 (diff)
downloadghdl-9217cecc8bee7b2a6759f38eafb823703c9d0617.tar.gz
ghdl-9217cecc8bee7b2a6759f38eafb823703c9d0617.tar.bz2
ghdl-9217cecc8bee7b2a6759f38eafb823703c9d0617.zip
fix(configure): disable -Werror by default
Because the build system does not have direct control over the compiler, it cannot ensure that no warnings are issued in downstream compilations. Such warnings can occur due to newer compiler versions with more sophisticated diagnostics, older compiler versions with diagnostics bugs, or simply different, untested compilers. With -Werror enabled by default, these harmless warnings result in complete compilation failures. The option remains enabled in CI to ensure upstream code quality.
Diffstat (limited to 'scripts/ci-run.sh')
-rwxr-xr-xscripts/ci-run.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/ci-run.sh b/scripts/ci-run.sh
index 368224085..ecfd6e358 100755
--- a/scripts/ci-run.sh
+++ b/scripts/ci-run.sh
@@ -202,6 +202,8 @@ build () {
mkdir "build-$BACK"
cd "build-$BACK"
+ CONFIG_OPTS+=" --enable-werror"
+
if [ "x$ISSYNTH" = "xfalse" ]; then
CONFIG_OPTS+=" --disable-synth"
fi