ldc-developers / ldc2.snap

Snap package definition for LDC, the LLVM-based D compiler
11 stars 4 forks source link

Update to LDC 1.9.0 stable release #49

Closed WebDrake closed 6 years ago

WebDrake commented 6 years ago

https://github.com/ldc-developers/ldc/releases/tag/v1.9.0

JohanEngelen commented 6 years ago

We now ship LTO stdlib binaries with our Github packages. Can you try and test with cmake -DBUILD_LTO_LIBS=ON ? Testing would be something like: ldc2 hello.d -of=hello_thin -flto=thin -defaultlib=phobos2-ldc-lto,druntime-ldc-lto

WebDrake commented 6 years ago

Sounds good, but I'll do that as a follow-up patch. BTW what's the status of LDC 0.17.6 ... ? I would need that released in order to have a bootstrap compiler that supports LLVM 6.

WebDrake commented 6 years ago

@JohanEngelen is that for the LDC or LLVM cmake command? (I checked the ldc-scripts repo but couldn't find any corresponding usage.)

kinke commented 6 years ago

The build scripts in ldc-scripts are obsoleted - the official package is built by the CircleCI config. It's for the LDC CMake command line, but also requires -DD_FLAGS='-w;-flto=thin', see here.

WebDrake commented 6 years ago

Does that mean that I will need an LTO-supporting LDC to build this?

kinke commented 6 years ago

Nope, these flags affect the freshly built compiler compiling its default libs.