Commit d3b82ea
authored
Simplified build script bin names in new layout (#16812)
### What does this PR try to resolve?
This PR spawned out of a
[comment](#16807 (comment))
from @epage raising that we didn't remove the hashes for some bins.
However we did remove the hashes from "regular" bins in
#16351
This PR
* Removes the use of `-Cextra-filename` for build scripts when
`-Zbuild-dir-new-layout` is enabled.
* Does not uplift build-scripts in the `build-dir` internally. (its not
really uplifting, its more of a rename via hardlink)
Previously, we had a directory like
```
build/<pkg>/<hash>/out/
build_script_build-[HASH].d
build_script_build-[HASH][EXE]
build-script-build[EXE]
```
After this change
```
build/<pkg>/<hash>/out/
build_script_build.d
build_script_build[EXE]
```
Part of: #15010
### How to test and review this PR?
See the test updates in each commit.
I could split into 2 PRs if needed but I felt the changes were related
and small enough to go together.File tree
4 files changed
+28
-10
lines changed- src/cargo/core/compiler
- build_runner
- tests/testsuite
4 files changed
+28
-10
lines changedLines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
453 | 459 | | |
454 | 460 | | |
455 | 461 | | |
| |||
460 | 466 | | |
461 | 467 | | |
462 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
463 | 474 | | |
464 | 475 | | |
465 | 476 | | |
| |||
645 | 656 | | |
646 | 657 | | |
647 | 658 | | |
648 | | - | |
| 659 | + | |
649 | 660 | | |
650 | 661 | | |
651 | 662 | | |
| |||
905 | 916 | | |
906 | 917 | | |
907 | 918 | | |
908 | | - | |
909 | | - | |
| 919 | + | |
| 920 | + | |
910 | 921 | | |
911 | 922 | | |
912 | 923 | | |
| |||
915 | 926 | | |
916 | 927 | | |
917 | 928 | | |
918 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
919 | 933 | | |
920 | 934 | | |
921 | 935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
353 | 358 | | |
354 | 359 | | |
355 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
| 284 | + | |
| 285 | + | |
287 | 286 | | |
288 | 287 | | |
289 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
0 commit comments