On Sat, 04 May 2013 22:47:42 -0400, Andrew Edwards wrote:

According to the GitHub/rejectedsoftware/dub there is "Support for DMD,
GDC and LDC (common DMD flags are translated automatically)." Please
elaborate because I don't exactly understand what that means. I've to to
install LDC and use it instead of DMD but this doesn't seem to help
because after changing the second to last line of dub/build.sh to:

ldc2 -ofbin/dub -g -d-debug -w -property -Isource $* $LIBS source/app.d

I get a slew of linker errors:

(...)

My guess is this is due to ldc2 lacking automatic dependency
resolution that rdmd has.

Please confirm that this is the case or point me in the right direction
if I have missed something important regarding configuring dub to use
with LDC.

Thanks,
Andrew

Currently the support is only for building projects (using "dub --compiler=ldc2"). The dub build script is supposed to be redone to work without rdmd, though, and at that occation I'll also add support for other compilers. For now, if you have rdmd installed (AFAIK it's just a single D file that needs to be compiled), this should work:

rdmd --compiler=ldmd --build-only -ofbin/dub -g -debug -w -property -Isource $* $LIBS source/app.d

(or maybe that's "ldmd2", not sure)