Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTO improvements - fix #15578 #21679

Merged
merged 1 commit into from
Apr 17, 2023
Merged

LTO improvements - fix #15578 #21679

merged 1 commit into from
Apr 17, 2023

Conversation

mratsim
Copy link
Collaborator

@mratsim mratsim commented Apr 17, 2023

The LTO is broken on Mac, meaning no one uses it due to cross platform concerns, see Pebaz/nimporter#51 and
Also uses Clang ThinLTO if lto_incremental is set https://clang.llvm.org/docs/ThinLTO.html

Addressing the discussion on whether the flag is wanted or not (#15578 and nim-lang/RFCs#278) is not in scope, this just fixes the bug of the current status quo.

@Araq Araq merged commit 938f5c5 into devel Apr 17, 2023
@Araq Araq deleted the lto-1 branch April 17, 2023 11:02
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 938f5c5

Hint: mm: orc; opt: speed; options: -d:release
166810 lines; 8.227s; 612.473MiB peakmem

capocasa pushed a commit to capocasa/Nim that referenced this pull request May 15, 2023
capocasa pushed a commit to capocasa/Nim that referenced this pull request May 16, 2023
narimiran pushed a commit that referenced this pull request Jun 15, 2023
(cherry picked from commit 938f5c5)
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
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.

2 participants