Attempt to get rid of phobos Makefiles, using reggae

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 4 15:44:38 PDT 2015


On 6/4/15 5:50 PM, Atila Neves wrote:
> http://dpaste.dzfl.pl/562f1ddc1aad
>
> This can build the static and dynamic libraries on Linux. I then linked
> to the static version to make sure my programs still worked. They did.
>
> For other OSs there'd be some logic to select different files. It was a
> pain figuring out exactly what posix.mak did but at least this works. Is
> this horrible or is this the kind of direction we might want to go?
> Also, why are some Linux files not being built on Linux with the current
> Makefile?
>
> In theory this approach would mean readable build descriptions in D, and
> only one of them for all OSs instead of 3 makefiles. Also, never again
> typing `make clean`.
>
> Once reggae has a binary backend this would mean no dependency on make,
> ninja or tup. Just a D compiler.

This is very cool.

I read somewhere that reggae builds itself. I'd suggest a way to build 
reggae with only OS-provided common tools, since you'd have to include 
it in the toolchain in order to build dmd/phobos otherwise.

-Steve


More information about the Digitalmars-d mailing list