GDC with later DMD's

Gregor Richards Richards at codu.org
Thu Apr 27 21:07:28 PDT 2006


GDC 0.17 is unfortunately out of date with respect to DMD.  I've been 
hacking at it and got a working GDC based on DMD 0.154, simply by 
incrementally going version-by-version, repatching it, and making sure 
it still compiles.  It seems to be working.  Most importantly, it 
compiles much of the stuff that GDC 0.17 doesn't due to language changes.

I don't want to fork or anything ... if the changes are relatively 
working, it'd be nice to get them into GDC proper.

Also, I fixed a strange bug that was annoying me.  It seems that GDC 
0.17 doesn't compile std.c.linux.linux in, even on a GNU/Linux system. 
The function is replicated by std.c.unix.unix, but unfortunately if a 
program does:

version (linux) { std.c.linux.linux... }

it would fail.  I dummied down std.c.linux.linux to not conflict with 
the other built-in things (and to import them of course), and it seems 
to work - at least I can finally build 'build' ^^


Another issue - libgphobos.a.  I don't quite understand why GDC 0.17 
only makes a .a.  It makes binaries quite big.  I modified phobos' auto* 
stuff to use libtool and make libgphobos.so.0.  That too seems to work.

If anybody wants a copy, I can get it to you.  David: What's your 
status?  Are you still maintaining GDC?  Do you have an accessible 
public repository?  It'd be nice if I could make changes without feeling 
like I was working against you :(

  - Gregor Richards



More information about the D.gnu mailing list