|
@@ -14,7 +14,15 @@ let package = Package(
|
|
)
|
|
)
|
|
],
|
|
],
|
|
targets: [
|
|
targets: [
|
|
- .target(name: "CryptoSwift"),
|
|
|
|
|
|
+ .target(
|
|
|
|
+ name: "CryptoSwift",
|
|
|
|
+ swiftSettings: [
|
|
|
|
+ // Enable better optimizations when building in Release configuration. Despite the use of
|
|
|
|
+ // the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
|
|
|
|
+ // builds. See <https://github.com/swift-server/guides#building-for-production> for details.
|
|
|
|
+ .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
|
|
|
|
+ ]
|
|
|
|
+),
|
|
.testTarget(name: "CryptoSwiftTests", dependencies: ["CryptoSwift"]),
|
|
.testTarget(name: "CryptoSwiftTests", dependencies: ["CryptoSwift"]),
|
|
.testTarget(name: "TestsPerformance", dependencies: ["CryptoSwift"])
|
|
.testTarget(name: "TestsPerformance", dependencies: ["CryptoSwift"])
|
|
],
|
|
],
|