Closed
Bug 1271674
Opened 8 years ago
Closed 8 years ago
Xcode 7.3.1 Swift compiler crash on optimized build
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fxios | 5.0+ | --- |
People
(Reporter: st3fan, Assigned: st3fan)
Details
Attachments
(1 file)
The Swift compiler in 7.3.1 crashes when compiling any of the Schemes that use the optimized build setting. https://bugs.swift.org/browse/SR-1455
Assignee | ||
Comment 1•8 years ago
|
||
"Optimizer team's taking a look. Worst case, you can try disabling optimization per-func with @_semantics("optimize.sil.never") attr"
Updated•8 years ago
|
Rank: 1
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → sarentz
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•8 years ago
|
||
This patch changes the Swift Optimization Level from `-O -whole-module-optimization` to just `-O` for the *Storage* framework. This is a temporary solution until we have a better idea how to deal with https://bugs.swift.org/browse/SR-1455 or until Apple provides an Xcode update that fixes this issue. This fix now at least means we can continue to do builds. And the change is limited to *Storage*. The rest of the app compiles without issues with the original optimization settings.
Attachment #8751344 -
Flags: review?(sleroux)
Comment 3•8 years ago
|
||
Comment on attachment 8751344 [details] [review] PR: https://github.com/mozilla/firefox-ios/pull/1802 LGTM
Attachment #8751344 -
Flags: review?(sleroux) → review+
Assignee | ||
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•