Skip to content

Add --funified-lto command-line option, same as clang.#5049

Draft
JohanEngelen wants to merge 2 commits intoldc-developers:masterfrom
JohanEngelen:funified-lto
Draft

Add --funified-lto command-line option, same as clang.#5049
JohanEngelen wants to merge 2 commits intoldc-developers:masterfrom
JohanEngelen:funified-lto

Conversation

@JohanEngelen
Copy link
Member

Resolves #5047

@JohanEngelen
Copy link
Member Author

the test for now intentionally does not use -funified-lto, to see whether it is actually really needed when mixing full and thin lto object files. Apparently not needed on my macbook...

@JohanEngelen JohanEngelen marked this pull request as draft January 25, 2026 23:59
@kinke
Copy link
Member

kinke commented Jan 26, 2026

Yeah, that used to work just fine at least (I remember suggesting to use -flto=thin to create static libs which can then be used for both full and thin LTO). Plus lib{druntime,phobos}-lto are compiled with -flto=thin, and linked into the official builds using -flto=full for the compiler parts, so should be tested too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for -funified-lto

2 participants