Separating ddmd

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 7 21:23:55 PST 2016


On Monday, 7 November 2016 at 09:08:28 UTC, ANtlord wrote:
> Hello! I've tried to separate ddmd frontend from ldc. I just 
> move folder ddmd from ldc project (versions 1.0.0) and folder 
> ddmd from build directory to my test project. Folder ddmd from 
> build I moved because it contains module id. Also as far as I 
> know I need to compile some C++ sources. And this thing is not 
> clear for. I found declaration of class Library but I don't see 
> body of this class. Is it generated by something during ldc 
> compilation? Does somebody know?

You should compile with `-d-version=IN_LLVM`. The front-end code 
still has some backend specific stuff in it that is versioned-out 
when IN_LLVM is set.

-Johan


More information about the Digitalmars-d mailing list