Commit 615b485
committed
Update version of cc crate to v1.0.97
Reason:
In order to build the Windows version of the Rust toolchain for the Android platform, the following patch to the cc is crate is required to avoid incorrectly determining that we are building with the Android NDK: rust-lang/cc-rs@57853c4
This patch is present in version 1.0.80 and newer versions of the cc crate. The rustc source distribution currently has 3 different versions of cc in the vendor directory, only one of which has the necessary fix.
We (the Android Rust toolchain) are currently maintaining local patches to upgrade the cc crate dependency versions, which we would like to upstream.
Furthermore, beyond the specific reason, the cc crate in bootstrap is currently pinned at an old version due to problems in the past when trying to update it. It is worthwhile to figure out and resolve these problems so we can keep the dependency up-to-date.
Other fixes:
As of cc v1.0.78, object files are prefixed with a 16-character hash.
Update src/bootstrap/src/core/build_steps/llvm.rs to account for this to
avoid failures when building libunwind and libcrt. Note that while the hash
prefix was introduced in v1.0.78, in order to determine the names of the
object files without scanning the directory, we rely on the compile_intermediates
method, which was introduced in cc v1.0.86
As of cc v1.0.86, compilation on MacOS uses the -mmacosx-version-min flag.
A long-standing bug in the CMake rules for compiler-rt causes compilation
to fail when this flag is specified. So we add a workaround to suppress this
flag.
Updating to cc v1.0.91 and newer requires fixes to bootstrap unit tests.
The unit tests use targets named "A", "B", etc., which fail a validation
check introduced in 1.0.91 of the cc crate.1 parent 25e3949 commit 615b485
File tree
7 files changed
+116
-72
lines changed- src/bootstrap
- src
- core
- build_steps
- builder
- utils
7 files changed
+116
-72
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
506 | 508 | | |
507 | 509 | | |
508 | 510 | | |
509 | | - | |
| 511 | + | |
510 | 512 | | |
511 | 513 | | |
512 | 514 | | |
| |||
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| 601 | + | |
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
| |||
729 | 732 | | |
730 | 733 | | |
731 | 734 | | |
732 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
733 | 746 | | |
734 | 747 | | |
735 | 748 | | |
| |||
742 | 755 | | |
743 | 756 | | |
744 | 757 | | |
745 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
746 | 769 | | |
747 | 770 | | |
748 | 771 | | |
| |||
921 | 944 | | |
922 | 945 | | |
923 | 946 | | |
924 | | - | |
| 947 | + | |
925 | 948 | | |
926 | 949 | | |
927 | 950 | | |
| |||
1022 | 1045 | | |
1023 | 1046 | | |
1024 | 1047 | | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1025 | 1054 | | |
1026 | 1055 | | |
1027 | 1056 | | |
1028 | 1057 | | |
1029 | 1058 | | |
1030 | 1059 | | |
1031 | 1060 | | |
| 1061 | + | |
1032 | 1062 | | |
1033 | 1063 | | |
1034 | 1064 | | |
| |||
1190 | 1220 | | |
1191 | 1221 | | |
1192 | 1222 | | |
1193 | | - | |
| 1223 | + | |
1194 | 1224 | | |
1195 | 1225 | | |
1196 | 1226 | | |
| |||
1222 | 1252 | | |
1223 | 1253 | | |
1224 | 1254 | | |
1225 | | - | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1226 | 1263 | | |
1227 | | - | |
1228 | | - | |
1229 | 1264 | | |
1230 | 1265 | | |
1231 | 1266 | | |
| |||
1372 | 1407 | | |
1373 | 1408 | | |
1374 | 1409 | | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
1378 | 1413 | | |
1379 | 1414 | | |
1380 | 1415 | | |
| |||
0 commit comments