Skip to content

Commit

Permalink
build: remove CMO flags from library targets
Browse files Browse the repository at this point in the history
[swift-homomorphic-encryption](https://github.com/apple/swift-homomorphic-encryption/blob/main/Package.swift) enables CMO only on executable or benchmark targets, not on library targets. I mimics it.
  • Loading branch information
kkebo committed Aug 13, 2024
1 parent 579897a commit 27e7744
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ let package = Package(
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)),
.unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)),
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)),
.enableExperimentalFeature("CodeItemMacros"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("InternalImportsByDefault"),
Expand All @@ -47,7 +46,6 @@ let package = Package(
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)),
.unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)),
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("InternalImportsByDefault"),
]
Expand All @@ -61,7 +59,6 @@ let package = Package(
swiftSettings: [
.unsafeFlags(["-Xfrontend", "-warn-long-function-bodies=100"], .when(configuration: .debug)),
.unsafeFlags(["-Xfrontend", "-warn-long-expression-type-checking=100"], .when(configuration: .debug)),
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release)),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("InternalImportsByDefault"),
]
Expand Down

0 comments on commit 27e7744

Please sign in to comment.