This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Pre-compiled headers
On Thu, Jan 13, 2000 at 05:56:33PM -0200, Alexandre Oliva wrote:
> On Jan 12, 2000, Per Bothner <per@bothner.com> wrote:
>
> > Phil Blecker <tmwg-gcc@inxservices.com> writes:
> >> Wouldn't make need to be modified to get any real use benefit from this?
>
> > Something like this should work:
>
> > stamp: foo1.c foo2.c foo3.c
> > gcc -c $?
> > echo timestamp > stamp
>
> And then, arrange that `stamp' also depends on any other files
> foo[123].c `#include's? I must confess I really don't like this
> approach.
Consider what happens when it's a list of 100 .c files, and only one .c
file has changed; no headers have changed.
It sounds like make may need to be updated anyway. For instance, if pak
files are used, as being proposed, make may need to understand them just
like it does archive files. Otherwise gcc will need to do the job of make
for its pre-compiled headers.