Skip to content

Commit

Permalink
Fixes compiler segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
wokalski committed Dec 30, 2016
1 parent bcd0053 commit a9dfb12
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Diff.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Framework/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
Expand Down
2 changes: 1 addition & 1 deletion Framework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.4.2</string>
<string>0.5.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
1 change: 1 addition & 0 deletions Sources/Diff.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
public protocol DiffProtocol: Collection, Sequence {

associatedtype DiffElementType
typealias Index = Int

var elements: [DiffElementType] { get }
}
Expand Down
2 changes: 2 additions & 0 deletions Sources/ExtendedDiff.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
SeeAlso: Diff
*/
public struct ExtendedDiff: DiffProtocol {

public typealias Index = Int

public enum Element {
case insert(at: Int)
Expand Down
2 changes: 2 additions & 0 deletions Sources/NestedDiff.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

public struct NestedDiff: DiffProtocol {

public typealias Index = Int

public enum Element {
case deleteSection(Int)
case insertSection(Int)
Expand Down
2 changes: 2 additions & 0 deletions Sources/NestedExtendedDiff.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

public struct NestedExtendedDiff: DiffProtocol {

public typealias Index = Int

public enum Element {
case deleteSection(Int)
case insertSection(Int)
Expand Down

0 comments on commit a9dfb12

Please sign in to comment.