Skip to content

Commit ce50cb0

Browse files
authored
Use implementation-only imports (#3404)
This makes it so compiling a manifest won't require the presence of the Foundation .swiftmodule
1 parent d4a488b commit ce50cb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PackageDescription/PackageDescription.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@_implementationOnly import ucrt
1717
@_implementationOnly import struct WinSDK.HANDLE
1818
#endif
19-
import Foundation
19+
@_implementationOnly import Foundation
2020

2121
/// The configuration of a Swift package.
2222
///

Sources/PackageDescription/Target.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
11+
@_implementationOnly import Foundation
1212

1313
/// A target, the basic building block of a Swift package.
1414
///

0 commit comments

Comments
 (0)