Skip to content

Conversation

@foxtran
Copy link
Contributor

@foxtran foxtran commented Feb 1, 2026

Closes #138910

The existing linker-plugin-based LTO documentation does not describe the correct usage of full LTO. Specifically, when invoking rustc with full LTO, the -C lto flag must be passed in addition to -C linker-plugin-lto.

Also, this PR documents the use of full LTO when linking Rust with Fortran. Unfortunately, LLVM flang does not currently support ThinLTO, so full LTO is the only viable option in this case.

Toolchain combinations were slightly updated.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 1, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 1, 2026

r? @fee1-dead

rustbot has assigned @fee1-dead.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@foxtran
Copy link
Contributor Author

foxtran commented Feb 1, 2026

r? @nnethercote

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

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linker-plugin-based LTO with -flto in clang not working

4 participants