diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-26 00:13:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-26 00:13:34 +0000 |
commit | 0d4668c1d5384f28ab21578cf63532c2b28222ff (patch) | |
tree | d885e85303c8aa6ef588f55eb39597847cb68227 /libgo/configure.ac | |
parent | acc6151f4a91aff299533fb260ef0a67478e09cc (diff) | |
download | gcc-0d4668c1d5384f28ab21578cf63532c2b28222ff.zip gcc-0d4668c1d5384f28ab21578cf63532c2b28222ff.tar.gz gcc-0d4668c1d5384f28ab21578cf63532c2b28222ff.tar.bz2 |
libgo: Add --enable-werror configure option.
From-SVN: r195482
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r-- | libgo/configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac index 8cde50b..63d8cbc 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -50,8 +50,11 @@ AC_PROG_AWK WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual' AC_SUBST(WARN_FLAGS) -dnl FIXME: This should be controlled by --enable-maintainer-mode. -WERROR="-Werror" +AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror], + [turns on -Werror @<:@default=yes@:>@])]) +if test "x$enable_werror" != "xno"; then + WERROR="-Werror" +fi AC_SUBST(WERROR) glibgo_toolexecdir=no |