Commit a7399d8
committed
Expose
SwiftPM will compute a hash of the arguments passed to `swift build`,
`swift test`, etc to determine if a full rebuild is necessary.
Currently, it doesn't take in to account whether
`.doesNotAffectIncrementalBuild` is set on swift compiler options and so
any time any compiler option changes it will perform a full rebuild.
Expose the function that swift-driver uses to compute the argument hash
which takes in to account `.doesNotAffectIncrementalBuild` so that
SwiftPM can leverage it to reduce unnecessary rebuilds.
In order to keep `BuildRecordInfo` hidden behind `_spi` the function was
moved out to the standalone `BuildRecordArguments` struct.BuildRecordInfo.computeHash
1 parent 134d830 commit a7399d8
File tree
1 file changed
+13
-11
lines changed- Sources/SwiftDriver/IncrementalCompilation
1 file changed
+13
-11
lines changedLines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 116 | | |
127 | 117 | | |
128 | 118 | | |
| |||
209 | 199 | | |
210 | 200 | | |
211 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
0 commit comments