ldc-developers / ldc2.snap

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

Ensure druntime and phobos are built with link-time optimization (LTO) #50

Closed WebDrake closed 6 years ago

WebDrake commented 6 years ago

This should bring the snap package closer in line with the packages and tarballs distributed via GitHub.

WebDrake commented 6 years ago

(... should probably try re-enabling multilib after this ...)

WebDrake commented 6 years ago

Testing would be something like: ldc2 hello.d -of=hello_thin -flto=thin -defaultlib=phobos2-ldc-lto,druntime-ldc-lto

Works with my local build, so I'm taking this in.

WebDrake commented 6 years ago

BTW, would it be worth updating the defaultlib setting in ldc2.conf ... ?

kinke commented 6 years ago

Nope, this should be opt-in as stated in the release notes.

WebDrake commented 6 years ago

Good, because I didn't make any changes to the config ;-)