[RFC] Avoid multiple unnecessary execution of regformats/regdat.sh script

Andreas Schwab schwab@redhat.com
Tue Jan 18 16:12:00 GMT 2011


"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."



More information about the Gdb-patches mailing list