Commit 77732bc
authored
Unrolled build for #160424
Rollup merge of #160424 - petrochenkov:jobdflt, r=bjorn3
Use `thread::available_parallelism` as the default limit for backend parallelism
Instead of the old scheme with 32-or-unlimited, depending on inherited-ness of the jobserver.
Not sure if this needs some wider discussion or not.
In the most common case (rustc is called from cargo) nothing changes, because cargo already limits the parallelism to `thread::available_parallelism` by default, and passes this limit to rustc through jobserver.
#160387 will become simpler if this PR is merged first.
r? @bjorn3 @Zoxc2 files changed
Lines changed: 7 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
| 378 | + | |
381 | 379 | | |
382 | 380 | | |
383 | 381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | 1652 | | |
1673 | 1653 | | |
1674 | 1654 | | |
| |||
1682 | 1662 | | |
1683 | 1663 | | |
1684 | 1664 | | |
1685 | | - | |
| 1665 | + | |
1686 | 1666 | | |
1687 | 1667 | | |
1688 | 1668 | | |
| |||
1735 | 1715 | | |
1736 | 1716 | | |
1737 | 1717 | | |
1738 | | - | |
| 1718 | + | |
1739 | 1719 | | |
1740 | 1720 | | |
1741 | | - | |
1742 | | - | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
1743 | 1724 | | |
1744 | 1725 | | |
1745 | 1726 | | |
| |||
0 commit comments