Treat warnings as errors in RSCore.

This commit is contained in:
Brent Simmons 2024-11-08 18:56:54 -08:00
parent a4baafd6dc
commit 7eba4a0e54
1 changed files with 7 additions and 4 deletions

View File

@ -10,10 +10,13 @@ let package = Package(
.library(name: "RSCoreObjC", type: .dynamic, targets: ["RSCoreObjC"]),
.library(name: "RSCoreResources", type: .static, targets: ["RSCoreResources"])
],
targets: [
.target(
name: "RSCore",
dependencies: ["RSCoreObjC"]),
targets: [
.target(
name: "RSCore",
dependencies: ["RSCoreObjC"],
swiftSettings: [
.unsafeFlags(["-warnings-as-errors"])
]),
.target(
name: "RSCoreObjC",
dependencies: [],