Skip to content

Commit c4644b4

Browse files
authored
Remove a dead link in new-target.md + other nits (rust-lang#1186)
1 parent e218184 commit c4644b4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/building/new-target.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ cd src/llvm-project
2020
git remote add my-target-llvm some-llvm-repository
2121
git checkout my-target-llvm/my-branch
2222
cd ..
23-
git add llvm_target
23+
git add llvm-project
2424
git commit -m 'Use my custom LLVM'
2525
```
2626

2727
### Using pre-built LLVM
2828

2929
If 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

3333
You can tell Rust to use a pre-built version of LLVM using the `target` section
3434
of `config.toml`:
@@ -74,7 +74,7 @@ You will need to add a line to the big table inside of the
7474
will 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

127127
There 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

131133
For an example of promoting a target from cross-compiled to native,
132134
see [#75914](https://github.com/rust-lang/rust/pull/75914).

0 commit comments

Comments
 (0)