Browse Source

Xcode can't swiftSettings.unsafeFlags

Marcin Krzyzanowski 4 years ago
parent
commit
8ee88c7587
1 changed files with 1 additions and 9 deletions
  1. 1 9
      Package.swift

+ 1 - 9
Package.swift

@@ -14,15 +14,7 @@ let package = Package(
     )
     )
   ],
   ],
   targets: [
   targets: [
-    .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))
-        ]
-),
+    .target(name: "CryptoSwift"),
     .testTarget(name: "CryptoSwiftTests", dependencies: ["CryptoSwift"]),
     .testTarget(name: "CryptoSwiftTests", dependencies: ["CryptoSwift"]),
     .testTarget(name: "TestsPerformance", dependencies: ["CryptoSwift"])
     .testTarget(name: "TestsPerformance", dependencies: ["CryptoSwift"])
   ],
   ],