Skip to content

Commit

Permalink
Only set unsafe flags if debugging
Browse files Browse the repository at this point in the history
Also moved /regex/ to an upcoming-feature rather than an unsafe-flag
  • Loading branch information
KyNorthstar committed Nov 15, 2024
1 parent c95e034 commit dbd634b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ let package = Package(

targets: [
.target(
name: "UuidTools"
name: "UuidTools",
swiftSettings: [
.enableUpcomingFeature("BareSlashRegexLiterals"),
]
),

.executableTarget(
Expand All @@ -45,14 +48,15 @@ let package = Package(



#if DEBUG
for target in package.targets {
target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(
.unsafeFlags([
"-warnings-as-errors",
// "-Xfrontend", "-warn-concurrency",
"-Xfrontend", "-enable-actor-data-race-checks",
"-enable-bare-slash-regex",
])
)
}
#endif

0 comments on commit dbd634b

Please sign in to comment.