diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-26 00:13:34 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-26 00:13:34 +0000 |
commit | 7593534151254bc4820f4e262bc36fc8d6e263b2 (patch) | |
tree | d885e85303c8aa6ef588f55eb39597847cb68227 /libgo/configure.ac | |
parent | 263d438231a3b46389373b0ea53d4a782106add7 (diff) | |
download | gcc-7593534151254bc4820f4e262bc36fc8d6e263b2.tar.gz |
libgo: Add --enable-werror configure option.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195482 138bc75d-0d04-0410-961f-82ee72b054a4
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 8cde50ba0c1..63d8cbc955b 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 |