March 19
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

Additionally, you can add `ENABLE_RELEASE=1` to create a fully optimized release binary.

This has been possible for a very long time and actually is even tested on every PR with SemaphoreCI (Linux) and AppVeyor (Windows).

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.


[1] https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dmd#n54
March 19
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...

March 19
On Tuesday, 19 March 2019 at 10:10:28 UTC, Seb wrote:
> 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.
>
> [1] https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dmd#n54

I'm building DMD packages for RPM-based distros [1], and I'm using LDC too to compile it on Fedora since it's available in the official Fedora repositories.

[1] https://copr.fedorainfracloud.org/coprs/tcg/devel/package/dmd/
March 20
On Tuesday, 19 March 2019 at 10:10:28 UTC, Seb wrote:
> Well, you don't really need a script:
>
> git clone https://github.com/dlang/dmd
> HOST_DMD=ldmd2 make -f posix.mak -j10
>
> Additionally, you can add `ENABLE_RELEASE=1` to create a fully optimized release binary.

Thanks!
Next ›   Last »
1 2