@@ -20,15 +20,15 @@ cd src/llvm-project
2020git remote add my-target-llvm some-llvm-repository
2121git checkout my-target-llvm/my-branch
2222cd ..
23- git add llvm_target
23+ git add llvm-project
2424git commit -m 'Use my custom LLVM'
2525```
2626
2727### Using pre-built LLVM
2828
2929If you have a local LLVM checkout that is already built, you may be
30- able to configure Rust to treat your build as the [ system LLVM] [ sysllvm ]
31- to avoid redundant builds.
30+ able to configure Rust to treat your build as the system LLVM to avoid
31+ redundant builds.
3232
3333You can tell Rust to use a pre-built version of LLVM using the ` target ` section
3434of ` config.toml ` :
@@ -74,7 +74,7 @@ You will need to add a line to the big table inside of the
7474will then add a corresponding file for your new target containing a
7575` target ` function.
7676
77- Look for existing targets to use as examples
77+ Look for existing targets to use as examples.
7878
7979## Patching crates
8080
@@ -125,8 +125,10 @@ compiler, you can use it instead of the JSON file for both arguments.
125125## Promoting a target from tier 2 (target) to tier 2 (host)
126126
127127There are two levels of tier 2 targets:
128- a) Targets that are only cross-compiled (` rustup target add ` )
129- b) Targets that have a native toolchain (` rustup toolchain install ` )
128+ a) Targets that are only cross-compiled (` rustup target add ` )
129+ b) Targets that [ have a native toolchain] [ tier2-native ] (` rustup toolchain install ` )
130+
131+ [ tier2-native ] : https://doc.rust-lang.org/nightly/rustc/target-tier-policy.html#tier-2-with-host-tools
130132
131133For an example of promoting a target from cross-compiled to native,
132134see [ #75914 ] ( https://github.com/rust-lang/rust/pull/75914 ) .
0 commit comments