delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/04/06:36:59

Date: Tue, 4 Mar 1997 13:23:21 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "John M. Aldrich" <fighteer AT cs DOT com>
cc: djgpp AT delorie DOT com, "Vyacheslav O. Myskin" <V DOT O DOT Myskin AT inp DOT nsk DOT su>
Subject: Re: Another makefile question
In-Reply-To: <331B8C81.5933@cs.com>
Message-ID: <Pine.SUN.3.91.970304132207.12059F-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019