File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,13 @@ import SPMBuildCore
17
17
import SPMLLBuild
18
18
import PackageModel
19
19
20
- import struct SwiftDriver. BuildRecordArguments
21
- import struct SwiftOptions. OptionTable
20
+ #if USE_IMPL_ONLY_IMPORTS
21
+ @_implementationOnly import SwiftDriver
22
+ @_implementationOnly import SwiftOptions
23
+ #else
24
+ import SwiftDriver
25
+ import SwiftOptions
26
+ #endif
22
27
23
28
import class TSCBasic. LocalFileOutputByteStream
24
29
@@ -442,6 +447,8 @@ final class PackageStructureCommand: CustomLLBuildCommand {
442
447
let parsedOptions = try optionTable. parse ( Array ( buildParameters. flags. swiftCompilerFlags) , for: . batch)
443
448
let buildRecordInfoHash = BuildRecordArguments . computeHash ( parsedOptions)
444
449
450
+ // Replace the swiftCompilerFlags with a hash of themselves where arguments that
451
+ // do not affect incremental builds are removed.
445
452
buildParameters. flags. swiftCompilerFlags = [ buildRecordInfoHash]
446
453
447
454
return buildParameters
You can’t perform that action at this time.
0 commit comments