This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Do not build gdbserver with -Werror by default if development=false
- From: Doug Evans <dje at google dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 19 May 2014 15:52:09 -0700
- Subject: Re: [RFA] Do not build gdbserver with -Werror by default if development=false
- Authentication-results: sourceware.org; auth=none
- References: <1400534725-931-1-git-send-email-brobecker at adacore dot com>
On Mon, May 19, 2014 at 2:25 PM, Joel Brobecker <brobecker@adacore.com> wrote:
> Hello,
>
> On GDB release branches, we change $development in gdb/development.sh
> to false, in order to build the GDB release without -Werror by default,
> thus avoiding harmless compiler warnings from breaking the build of
> someone who's only interested in building GDB rather than working
> on it.
>
> This patch implements the same strategy for gdbserver, using the exact
> same method.
>
> gdb/gdbserver/ChangeLog:
>
> * configure.ac: Only use -Werror by default when DEVELOPMENT
> is true.
> * configure: Regenerate.
>
> Tested on x86_64-linux, by rebuilding GDBserver first with development
> set to true, and then doing it again with development set to false.
> Werror was used in the first case, but not in the second.
>
>
> OK to commit?
We've done this with gdb for awhile, so I see no reason to not do it
for gdbserver.
[fwiw]