[dmd-internals] default dmd target == debdmd?

Steve Schveighoffer schveiguy at yahoo.com
Fri Aug 27 08:28:42 PDT 2010





----- Original Message ----
> From: Don Clugston <dclugston at googlemail.com>
> To: Discuss the internals of DMD <dmd-internals at puremagic.com>
> Sent: Fri, August 27, 2010 11:21:20 AM
> Subject: Re: [dmd-internals] default dmd target == debdmd?
> 
> On 27 August 2010 17:15, Steve Schveighoffer <schveiguy at yahoo.com> wrote:
> > I  was in the process of doing some windows phobos development, so I decided  
>to
> > start using the latest compiler from trunk.  But when I started  building
> > druntime and phobos, I was getting these  printouts:
> >
> > Max # of fixups = 0
> > Max # of fixups =  1
> > Max # of fixups = 4
> > Max # of fixups = 1
> >  ...
> >
> > I thought WTF?  Well, it turns out the default build of dmd  if you just do 
>make
> > -f win32.mak is debdmd, not dmd.
> >
> > Is  there a good reason for this?  If not, can we change the default target  
>to
> > dmd?
> 
> It's so you can debug the compiler.Pretty much the only  time you want
> the release version is when making an official  release.

Or when you want to utilize unreleased fixes...

Building the debug version by default goes against all makefile convention I've 
ever seen.  It might be useful for you, but it's not for anyone else.  I have no 
idea how to debug the compiler.  I would expect that if I were to learn how to 
debug the compiler, I probably wouldn't mind learning how to type in make -f 
win32.mak debdmd.

-Steve



      


More information about the dmd-internals mailing list