Mail Archives: djgpp/1997/03/04/06:36:59
On Mon, 3 Mar 1997, John M. Aldrich wrote:
> Eli Zaretskii wrote:
> >
> > > 1) Add -MD to the list of compiler options. This causes gcc to produce
> > > a .d file for each source file automatically.
> >
> > -MD doesn't prevent compilation like -M does, which makes dependency
> > generation slower. If at all (see below), I suggest using -MMD rather
>
> Umm... '-MD' doesn't prevent compilation either last I noticed. I use
> it all the time as part of my standard compiler flags in makefiles and
> have never seen any kind of slowdown. Is there something I missed?
That's what I said: it does *NOT* prevent compilation. -MM does prevent
compilation, so only cpp runs, so it's faster.
- Raw text -