Commit f1051b5
authored
Rollup merge of #56944 - alexcrichton:less-thin2, r=michaelwoerister
bootstrap: Link LLVM as a dylib with ThinLTO
When building a distributed compiler on Linux where we use ThinLTO to
create the LLVM shared object this commit switches the compiler to
dynamically linking that LLVM artifact instead of statically linking to
LLVM. The primary goal here is to reduce CI compile times, avoiding two+
ThinLTO builds of all of LLVM. By linking dynamically to LLVM we'll
reuse the one ThinLTO step done by LLVM's build itself.
Lots of discussion about this change can be found [here] and down. A
perf run will show whether this is worth it or not!
[here]: #53245 (comment)File tree
11 files changed
+18
-240
lines changed- src
- bootstrap
- librustc_driver
- librustc_llvm
- test/run-make-fulldeps/llvm-pass
11 files changed
+18
-240
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
149 | | - | |
150 | 147 | | |
151 | 148 | | |
152 | 149 | | |
| |||
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
187 | | - | |
188 | 184 | | |
189 | 185 | | |
190 | 186 | | |
| |||
232 | 228 | | |
233 | 229 | | |
234 | 230 | | |
235 | | - | |
236 | 231 | | |
237 | 232 | | |
238 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | 378 | | |
380 | 379 | | |
381 | 380 | | |
| |||
503 | 502 | | |
504 | 503 | | |
505 | 504 | | |
506 | | - | |
507 | 505 | | |
508 | 506 | | |
509 | 507 | | |
| |||
646 | 644 | | |
647 | 645 | | |
648 | 646 | | |
649 | | - | |
| 647 | + | |
650 | 648 | | |
651 | 649 | | |
652 | 650 | | |
653 | 651 | | |
654 | 652 | | |
655 | 653 | | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 654 | | |
685 | 655 | | |
686 | 656 | | |
687 | 657 | | |
688 | 658 | | |
689 | | - | |
690 | 659 | | |
691 | 660 | | |
692 | 661 | | |
| |||
759 | 728 | | |
760 | 729 | | |
761 | 730 | | |
762 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
763 | 734 | | |
764 | 735 | | |
765 | 736 | | |
| |||
999 | 970 | | |
1000 | 971 | | |
1001 | 972 | | |
| 973 | + | |
| 974 | + | |
1002 | 975 | | |
1003 | 976 | | |
1004 | 977 | | |
| |||
1025 | 998 | | |
1026 | 999 | | |
1027 | 1000 | | |
1028 | | - | |
1029 | 1001 | | |
1030 | 1002 | | |
1031 | 1003 | | |
| |||
1048 | 1020 | | |
1049 | 1021 | | |
1050 | 1022 | | |
1051 | | - | |
| 1023 | + | |
1052 | 1024 | | |
1053 | 1025 | | |
1054 | 1026 | | |
| |||
1173 | 1145 | | |
1174 | 1146 | | |
1175 | 1147 | | |
1176 | | - | |
1177 | 1148 | | |
1178 | 1149 | | |
1179 | 1150 | | |
| |||
1184 | 1155 | | |
1185 | 1156 | | |
1186 | 1157 | | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | 1158 | | |
1192 | 1159 | | |
1193 | 1160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1888 | 1888 | | |
1889 | 1889 | | |
1890 | 1890 | | |
1891 | | - | |
1892 | | - | |
1893 | | - | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | 1896 | | |
1897 | | - | |
| 1897 | + | |
1898 | 1898 | | |
1899 | 1899 | | |
1900 | 1900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 221 | + | |
229 | 222 | | |
230 | 223 | | |
231 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 0 additions & 55 deletions
This file was deleted.
This file was deleted.
0 commit comments