Open benlangmuir opened 4 years ago
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.
swift build -c release
-O
-O2
-Os
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
@swift-ci create
Environment
5.3, Xcode 12Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Package Manager | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: b1aca7b2908f3273e1e306847e76442dIssue 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:
Clang supports: