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)

Other
iOS
defect
Not set
blocker

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
"Optimizer team's taking a look. Worst case, you can try disabling optimization per-func with @_semantics("optimize.sil.never") attr"
Rank: 1
Assignee: nobody → sarentz
Status: NEW → ASSIGNED
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)
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.

Attachment

General

Created:
Updated:
Size: