mirror of
https://github.com/apple/swift-crypto
synced 2026-11-22 04:30:39 +00:00
Clarify the privacy manifest comment in the package manifest (#498)
### Motivation: The comment we have in our package manifest was a bit ambiguous about Foundation linking and caused some confusion (reported in #496). As discussed on that issue, I don't think there's anything we want to do differently here, but we can try and improve the comment so other adopters don't waste time on a misunderstanding. ### Modifications: Clarify the privacy manifest comment in the package manifest. ### Result: Fixes #496.
This commit is contained in:
1 parent
f8fad2f95a
commit
1586608eee
1 file changed
+2
-3
+2
-3
@@ -49,9 +49,8 @@ var swiftSettings: [SwiftSetting] = [
|
||||
swiftSettings.append(.enableExperimentalFeature("CheckImplementationOnly"))
|
||||
#endif
|
||||
|
||||
// This doesn't work when cross-compiling: the privacy manifest will be included in the Bundle and
|
||||
// Foundation will be linked. This is, however, strictly better than unconditionally adding the
|
||||
// resource.
|
||||
// A resource makes SwiftPM generate a `Bundle.module` accessor that imports Foundation, not just FoundationEssentials.
|
||||
// `canImport(Darwin)` checks the host, not the target, so cross-compiling from Darwin still adds the resource.
|
||||
#if canImport(Darwin)
|
||||
let privacyManifestExclude: [String] = []
|
||||
let privacyManifestResource: [PackageDescription.Resource] = [.copy("PrivacyInfo.xcprivacy")]
|
||||
|
||||
Reference in new issue
Block a user