aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-05-19 15:31:01 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-05-19 13:31:01 +0000
commit01c712cb903689bd41733f098e8efbbe116511b0 (patch)
treee448a9eb3c843b0dbe0bff7da9740e1dd8b00ae2 /configure
parent2a8a8d7bd28ef295b15f5b1c0cd17e73409c80a6 (diff)
downloadgcc-01c712cb903689bd41733f098e8efbbe116511b0.zip
gcc-01c712cb903689bd41733f098e8efbbe116511b0.tar.gz
gcc-01c712cb903689bd41733f098e8efbbe116511b0.tar.bz2
Enable by default -Werror just for bootstrap-debug.mk and default build.
2017-05-19 Martin Liska <mliska@suse.cz> * configure.ac: Add --enable-werror-always just for bootstrap-debug (or none build config) and do not add it when we are on a release branch. * configure: Regenerated. From-SVN: r248276
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 10 insertions, 6 deletions
diff --git a/configure b/configure
index 32a3863..2c2fe64 100755
--- a/configure
+++ b/configure
@@ -14587,12 +14587,6 @@ fi
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror;
-else
- if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
- enable_werror=yes
-else
- enable_werror=no
-fi
fi
case ${enable_werror} in
@@ -14600,6 +14594,16 @@ case ${enable_werror} in
*) stage2_werror_flag="" ;;
esac
+if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
+ case $BUILD_CONFIG in
+ bootstrap-debug)
+ stage2_werror_flag="--enable-werror-always" ;;
+ "")
+ stage2_werror_flag="--enable-werror-always" ;;
+ esac
+fi
+
+
# Enable --enable-host-shared.
# Check whether --enable-host-shared was given.