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

[SR-13487] SwiftPM: Allow customizing optimization level #4502

Open
benlangmuir opened this issue Sep 1, 2020 · 1 comment
Open

[SR-13487] SwiftPM: Allow customizing optimization level #4502

benlangmuir opened this issue Sep 1, 2020 · 1 comment
Labels

Comments

@benlangmuir
Copy link
Member

Previous ID SR-13487
Radar rdar://problem/68172740
Original Reporter @benlangmuir
Type Bug
Environment

5.3, Xcode 12

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: b1aca7b2908f3273e1e306847e76442d

Issue Description:

Currently swift build -c release uses -O for swift and -O2 for C, and building a package in Xcode uses -O for swift and -Os for C.

We should be able to customize the optimization level of release builds.

Swift supports:

-Onone, -O, -Osize, -Ounchecked
-whole-module-optimization, -no-whole-module-optimization

Clang supports:

-O0, -O1, -O2, -O3, -Ofast, -Os, -Oz, -Og
-flto, -flto=full, -flto=thin
@benlangmuir
Copy link
Member Author

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants