summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAnthony Liguori2009-06-11 20:28:25 +0200
committerAnthony Liguori2009-06-12 20:56:34 +0200
commit487fefdb1e94098ea734cb10e9e17d5860dde2d1 (patch)
tree8d592234574ac83285b701b1eed71ce92c85f015 /configure
parentCRIS: Prettify sizes for the internal disasm. (diff)
downloadqemu-487fefdb1e94098ea734cb10e9e17d5860dde2d1.tar.gz
qemu-487fefdb1e94098ea734cb10e9e17d5860dde2d1.tar.xz
qemu-487fefdb1e94098ea734cb10e9e17d5860dde2d1.zip
Enable -Werror by default for git builds on Linux hosts
Additional hosts can be added to the white list as they are confirmed to build with --enable-werror. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 13 insertions, 5 deletions
diff --git a/configure b/configure
index 89e7f5362a..48c8949a4a 100755
--- a/configure
+++ b/configure
@@ -356,11 +356,7 @@ else
fi
[ -f "$workdir/vl.c" ] || source_path_used="yes"
-werror="no"
-# generate compile errors on warnings for development builds
-#if grep cvs $source_path/VERSION > /dev/null 2>&1 ; then
-#werror="yes";
-#fi
+werror=""
for opt do
optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
@@ -657,6 +653,18 @@ if test ! -x "$(which cgcc 2>/dev/null)"; then
sparse="no"
fi
+# Consult white-list to determine whether to enable werror
+# by default. Only enable by default for git builds
+if test -z "$werror" ; then
+ z_version=`cut -f3 -d. $source_path/VERSION`
+ if test "$z_version" = "50" -a \
+ "$linux" = "yes" ; then
+ werror="yes"
+ else
+ werror="no"
+ fi
+fi
+
#
# Solaris specific configure tool chain decisions
#