This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Avoid multiple unnecessary execution of regformats/regdat.sh script
- From: Andreas Schwab <schwab at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 18 Jan 2011 17:06:49 +0100
- Subject: Re: [RFC] Avoid multiple unnecessary execution of regformats/regdat.sh script
- References: <28927.3463808515$1295365546@news.gmane.org>
"Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr> writes:
> On Cygwin/Mingw targets,
> compilation of gdbserver is lengthy because
> it recompiles i386.c and similar files
> over and over again.
>
> The patch below avoids this by touching
> the generated file, if it is unchanged but older
> that the script or the data file sued by the script.
The right way to fix that is to use a stamp file. That avoids
unnecessary rebuilding of the targets that depend on the generated
files.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."