Specify LDC to compile specific files

Rainer Schuetze r.sagitario at gmx.de
Sat Mar 2 08:19:36 UTC 2019



On 02/03/2019 05:49, Michelle Long wrote:
> The problem with LDC is that it is very slow to compile. About 10x
> slower than dmd. Unfortunately certain things need ldc to function such
> as dcompute.

I think this varies quite a bit with the layout of the project and the
size of the source files. For example, a debug build of dmd itself
compiles a bit slower with LDC than with DMD, but the release build
actually compiles faster with LDC.

> 
> It would be nice if one could specify certain files to compile for ldc
> only.
> 
> 
> I guess the only way to accomplish this is to create a new project in
> the solution and use LDC for that?

Yes, you could try to build a library with LDC. I would not bet on it to
be ABI compatible with DMD, though. For example, real is 80-bit for DMD,
but 64-bit with LDC.


More information about the Digitalmars-d-ide mailing list