|
2 | 2 | // |
3 | 3 | // This source file is part of the Swift open source project |
4 | 4 | // |
5 | | -// Copyright (c) 2023 Apple Inc. and the Swift project authors |
| 5 | +// Copyright (c) 2023-2024 Apple Inc. and the Swift project authors |
6 | 6 | // Licensed under Apache License v2.0 with Runtime Library Exception |
7 | 7 | // |
8 | 8 | // See http://swift.org/LICENSE.txt for license information |
9 | 9 | // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors |
10 | 10 | // |
11 | 11 | //===----------------------------------------------------------------------===// |
12 | 12 |
|
13 | | -import Foundation |
| 13 | +import struct Foundation.URL |
14 | 14 |
|
15 | | -/*private*/ import struct Basics.AbsolutePath |
16 | | -/*private*/ import func Basics.resolveSymlinks |
17 | | -// FIXME: should not import this module |
18 | | -import Build |
19 | | -// FIXME: should be internal imports |
20 | | -import PackageGraph |
21 | | -/*private*/ import SPMBuildCore |
| 15 | +private import struct Basics.AbsolutePath |
| 16 | +private import func Basics.resolveSymlinks |
| 17 | + |
| 18 | +private import SPMBuildCore |
| 19 | + |
| 20 | +// FIXME: should import these module with `private` or `internal` access control |
| 21 | +import class Build.BuildPlan |
| 22 | +import class Build.ClangTargetBuildDescription |
| 23 | +import class Build.SwiftTargetBuildDescription |
| 24 | +import struct PackageGraph.ResolvedTarget |
22 | 25 |
|
23 | 26 | public protocol BuildTarget { |
24 | 27 | var sources: [URL] { get } |
@@ -49,7 +52,8 @@ private struct WrappedSwiftTargetBuildDescription: BuildTarget { |
49 | 52 | } |
50 | 53 |
|
51 | 54 | func compileArguments(for fileURL: URL) throws -> [String] { |
52 | | - // Note: we ignore the `fileURL` here as the expectation is that we get a commandline for the entire target in case of Swift. |
| 55 | + // Note: we ignore the `fileURL` here as the expectation is that we get a command line for the entire target |
| 56 | + // in case of Swift. |
53 | 57 | return try description.emitCommandLine(scanInvocation: false) |
54 | 58 | } |
55 | 59 | } |
|
0 commit comments