diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-11 20:46:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 20:46:51 +0100 |
| commit | 06d2c2a3b27091de3b0076b17d1a045d402a18f4 (patch) | |
| tree | 6f10c0bf560db1c0e1fd2950ac6a39a24638c35b | |
| parent | 4114a83735a8eb4d5bbffd1438fe32dbba7a30c7 (diff) | |
| parent | d94e3e300d1bf288d26b586bd27312815ef62f43 (diff) | |
| download | rust-06d2c2a3b27091de3b0076b17d1a045d402a18f4.tar.gz rust-06d2c2a3b27091de3b0076b17d1a045d402a18f4.zip | |
Rollup merge of #118827 - Nilstrieb:linker-plugin-lto, r=ehuss
Update table for linker-plugin-lto docs
| -rw-r--r-- | src/doc/rustc/src/linker-plugin-lto.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc/rustc/src/linker-plugin-lto.md b/src/doc/rustc/src/linker-plugin-lto.md index 858b7bc79c4..ff80f140482 100644 --- a/src/doc/rustc/src/linker-plugin-lto.md +++ b/src/doc/rustc/src/linker-plugin-lto.md @@ -136,6 +136,7 @@ able to get around this problem by setting `-Clinker=lld-link` in RUSTFLAGS ```python from collections import defaultdict import subprocess +import sys def minor_version(version): return int(version.split('.')[1]) @@ -143,7 +144,7 @@ def minor_version(version): INSTALL_TOOLCHAIN = ["rustup", "toolchain", "install", "--profile", "minimal"] subprocess.run(INSTALL_TOOLCHAIN + ["nightly"]) -LOWER_BOUND = 65 +LOWER_BOUND = 73 NIGHTLY_VERSION = minor_version(subprocess.run( ["rustc", "+nightly", "--version"], capture_output=True, @@ -159,6 +160,7 @@ def llvm_version(toolchain): version_map = defaultdict(lambda: []) for version in range(LOWER_BOUND, NIGHTLY_VERSION - 1): toolchain = "1.{}.0".format(version) + print("Checking", toolchain, file=sys.stderr) subprocess.run( INSTALL_TOOLCHAIN + ["--no-self-update", toolchain], capture_output=True) @@ -196,6 +198,8 @@ The following table shows known good combinations of toolchain versions. | 1.52 - 1.55 | 12 | | 1.56 - 1.59 | 13 | | 1.60 - 1.64 | 14 | -| 1.65 | 15 | +| 1.65 - 1.69 | 15 | +| 1.70 - 1.72 | 16 | +| 1.73 - 1.74 | 17 | Note that the compatibility policy for this feature might change in the future. |
