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

Add features to enable LTO #1208

Merged
merged 2 commits into from
May 24, 2024
Merged

Conversation

mjburghard
Copy link
Contributor

Add features to enable LTO (thin and full).
When passing -lto=, swiftc switches to emit bc files and the generated output-file-map must contain a mapping for llvm-bc instead of object.

Copy link
Member

@keith keith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

swift/internal/compiling.bzl Outdated Show resolved Hide resolved
swift/internal/compiling.bzl Outdated Show resolved Hide resolved
@mjburghard mjburghard marked this pull request as ready for review May 23, 2024 10:46
@keith keith merged commit 8c144a2 into bazelbuild:master May 24, 2024
15 checks passed
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