Skip to content

Commit a332628

Browse files
authored
Rollup merge of #118827 - Nilstrieb:linker-plugin-lto, r=ehuss
Update table for linker-plugin-lto docs
2 parents 10f3d73 + d94e3e3 commit a332628

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/doc/rustc/src/linker-plugin-lto.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,15 @@ able to get around this problem by setting `-Clinker=lld-link` in RUSTFLAGS
136136
```python
137137
from collections import defaultdict
138138
import subprocess
139+
import sys
139140
140141
def minor_version(version):
141142
return int(version.split('.')[1])
142143
143144
INSTALL_TOOLCHAIN = ["rustup", "toolchain", "install", "--profile", "minimal"]
144145
subprocess.run(INSTALL_TOOLCHAIN + ["nightly"])
145146
146-
LOWER_BOUND = 65
147+
LOWER_BOUND = 73
147148
NIGHTLY_VERSION = minor_version(subprocess.run(
148149
["rustc", "+nightly", "--version"],
149150
capture_output=True,
@@ -159,6 +160,7 @@ def llvm_version(toolchain):
159160
version_map = defaultdict(lambda: [])
160161
for version in range(LOWER_BOUND, NIGHTLY_VERSION - 1):
161162
toolchain = "1.{}.0".format(version)
163+
print("Checking", toolchain, file=sys.stderr)
162164
subprocess.run(
163165
INSTALL_TOOLCHAIN + ["--no-self-update", toolchain],
164166
capture_output=True)
@@ -196,6 +198,8 @@ The following table shows known good combinations of toolchain versions.
196198
| 1.52 - 1.55 | 12 |
197199
| 1.56 - 1.59 | 13 |
198200
| 1.60 - 1.64 | 14 |
199-
| 1.65 | 15 |
201+
| 1.65 - 1.69 | 15 |
202+
| 1.70 - 1.72 | 16 |
203+
| 1.73 - 1.74 | 17 |
200204

201205
Note that the compatibility policy for this feature might change in the future.

0 commit comments

Comments
 (0)