On Tuesday, 19 March 2019 at 10:10:28 UTC, Seb wrote:
On Monday, 18 March 2019 at 21:34:40 UTC, Per Nordlöw wrote:
On Monday, 18 March 2019 at 12:33:12 UTC, Seb wrote:
[1] https://github.com/dlang/installer
Does this include a script for building dmd with ldc or this
not yet possible?
Well, you don't really need a script:
git clone https://github.com/dlang/dmd
HOST_DMD=ldmd2 make -f posix.mak -j10
HOST_DMD=ldmd2 make -f posix.mak -j`nproc`
FTFY. It's bad enough make is a dinosaur that defaults to one
thread, let's not hard-code the number of cores.
Additionally, you can add `ENABLE_RELEASE=1` to create a fully
optimized release binary.
Awesome.
BTW, the Arch DMD package [1] is the only package that I know
of which is actually using LDC to compile DMD for the released
binaries.
Huh, I didn't know that. Yay Arch! And yet, compilation times are
still my mortal enemy...