Commit 6d445e1
committed
Auto merge of #44260 - alexcrichton:hardlink-no-copy, r=Mark-Simulacrum
rustbuild: Switch back to using hard links
The `copy` function historically in rustbuild used hard links to speed up the
copy operations that it does. This logic was backed out, however, in #39518 due
to a bug that only showed up on Windows, described in #39504. The cause
described in #39504 happened because Cargo, on a fresh build, would overwrite
the previous artifacts with new hard links that Cargo itself manages.
This behavior in Cargo was fixed in rust-lang/cargo#4390 where it no longer
should overwrite files on fresh builds, opportunistically leaving the filesystem
intact and not touching it.
Hopefully this can help speed up local builds by doing fewer copies all over the
place!File tree
6 files changed
+47
-33
lines changed- src
- bootstrap
- tools
6 files changed
+47
-33
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
904 | 908 | | |
905 | 909 | | |
906 | 910 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | | - | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | | - | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | | - | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| 189 | + | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
| |||
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
204 | | - | |
| 207 | + | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| |||
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| 236 | + | |
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| |||
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
279 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
280 | 287 | | |
281 | 288 | | |
282 | 289 | | |
| |||
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| 347 | + | |
340 | 348 | | |
341 | 349 | | |
342 | 350 | | |
| |||
375 | 383 | | |
376 | 384 | | |
377 | 385 | | |
| 386 | + | |
378 | 387 | | |
379 | 388 | | |
380 | 389 | | |
| |||
417 | 426 | | |
418 | 427 | | |
419 | 428 | | |
| 429 | + | |
420 | 430 | | |
421 | 431 | | |
422 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | | - | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
- CONTRIBUTING.md+39
- Cargo.lock+51-45
- Cargo.toml+3-3
- README.md+6-16
- src/cargo/core/registry.rs+29-5
- src/cargo/core/resolver/mod.rs+9-3
- src/cargo/ops/lockfile.rs+1-1
- src/cargo/sources/config.rs+42-10
- src/cargo/sources/directory.rs+10-3
- src/cargo/sources/git/source.rs+8
- src/cargo/sources/path.rs+8
- src/cargo/sources/registry/mod.rs+4
- src/cargo/sources/replaced.rs+8
- src/cargo/util/errors.rs+2-1
- src/cargo/util/read2.rs+8-15
- src/ci/dox.sh+2-2
- src/doc/MIGRATION_MAP+2-3
- src/doc/book/src/SUMMARY.md+4-5
- src/doc/book/src/getting-started/first-steps.md+1-1
- src/doc/book/src/getting-started/index.md
- src/doc/book/src/guide/index.md
- src/doc/book/src/index.md+2-2
- src/doc/book/src/reference/external-tools.md+4-3
- src/doc/book/src/reference/index.md-1
- src/doc/book/src/reference/pkgid-spec.md+8-8
- src/doc/book/src/reference/policies.md-70
- src/doc/book/src/reference/specifying-dependencies.md+6-7
- src/doc/book/theme/favicon.png
- src/doc/external-tools.md+4-3
- src/doc/header.html+1-1
- src/doc/pkgid-spec.md+8-8
- src/doc/policies.html+10
- src/doc/policies.md-70
- src/doc/source-replacement.md+6
- tests/directory.rs+131-4
- tests/features.rs+2-4
- tests/lockfile-compat.rs+24
- tests/resolve.rs+2
0 commit comments