Skip to content

Commit e2cc34c

Browse files
authored
Merge pull request #2793 from RalfJung/llvm
document that older LLVM versions come with increased risk
2 parents 1dfc306 + 56fdc2e commit e2cc34c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/updating-llvm.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ Rust supports building against multiple LLVM versions:
66
* Tip-of-tree for the current LLVM development branch is usually supported within a few days.
77
PRs for such fixes are tagged with `llvm-main`.
88
* The latest released major version is always supported.
9-
* The one or two preceding major versions are usually supported.
9+
* The one or two preceding major versions are usually supported in the sense that they are expected
10+
to build successfully and pass most tests. However, fixes for miscompilations often do not get
11+
backported to past LLVM versions, so using rustc with older versions of LLVM comes with an
12+
increased risk of soundness bugs. We strongly recommend using the latest version of LLVM.
1013

1114
By default, Rust uses its own fork in the [rust-lang/llvm-project repository].
1215
This fork is based on a `release/$N.x` branch of the upstream project, where

0 commit comments

Comments
 (0)