Skip to content

Commit

Permalink
Use implementation-only imports (#3404)
Browse files Browse the repository at this point in the history
This makes it so compiling a manifest won't require the presence of the Foundation .swiftmodule
  • Loading branch information
neonichu authored Apr 15, 2021
1 parent d4a488b commit ce50cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/PackageDescription/PackageDescription.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@_implementationOnly import ucrt
@_implementationOnly import struct WinSDK.HANDLE
#endif
import Foundation
@_implementationOnly import Foundation

/// The configuration of a Swift package.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/PackageDescription/Target.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
*/

import Foundation
@_implementationOnly import Foundation

/// A target, the basic building block of a Swift package.
///
Expand Down

0 comments on commit ce50cb0

Please sign in to comment.