Skip to content

Commit 15a20b2

Browse files
authored
Merge pull request #292 from rxwei/fix-288
Fix release build.
2 parents 59ad177 + 3293905 commit 15a20b2

18 files changed

+6
-3
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ let package = Package(
7676
.unsafeFlags(["-Xfrontend", "-enable-experimental-pairwise-build-block"]),
7777
.unsafeFlags(["-Xfrontend", "-disable-availability-checking"])
7878
]),
79-
.target(
79+
.testTarget(
8080
name: "Prototypes",
8181
dependencies: ["_RegexParser", "_StringProcessing"],
8282
swiftSettings: [
@@ -100,7 +100,7 @@ let package = Package(
100100
// MARK: Exercises
101101
.target(
102102
name: "Exercises",
103-
dependencies: ["_RegexParser", "Prototypes", "_StringProcessing", "RegexBuilder"],
103+
dependencies: ["_RegexParser", "_StringProcessing", "RegexBuilder"],
104104
swiftSettings: [
105105
.unsafeFlags(["-Xfrontend", "-enable-experimental-pairwise-build-block"]),
106106
.unsafeFlags(["-Xfrontend", "-disable-availability-checking"])

Sources/Exercises/Exercises.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public enum Exercises {
1616
HandWrittenParticipant.self,
1717
RegexDSLParticipant.self,
1818
RegexLiteralParticipant.self,
19-
PEGParticipant.self,
2019
NSREParticipant.self,
2120
]
2221
}

Sources/Exercises/Participants/PEGParticipant.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
// Disabled because Prototypes is a test target.
13+
#if false
14+
1215
struct PEGParticipant: Participant {
1316
static var name: String { "PEG" }
1417
}
@@ -51,3 +54,4 @@ private func graphemeBreakPropertyData(forLine line: String) -> GraphemeBreakEnt
5154

5255
}
5356

57+
#endif
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)