Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 11de4b7

Browse files
committed
Cross-link documentation for adding a new target
Both the target tier policy and the rustc-dev-guide has documentation on this, let's make sure people see both.
1 parent 061ee95 commit 11de4b7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/doc/rustc-dev-guide/src/building/new-target.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ These are a set of steps to add support for a new target. There are
44
numerous end states and paths to get there, so not all sections may be
55
relevant to your desired goal.
66

7+
See also the associated documentation in the
8+
[target tier policy][target_tier_policy_add].
9+
710
<!-- toc -->
811

12+
[target_tier_policy_add]: https://doc.rust-lang.org/rustc/target-tier-policy.html#adding-a-new-target
13+
914
## Specifying a new LLVM
1015

1116
For very new targets, you may need to use a different fork of LLVM

src/doc/rustc/src/target-tier-policy.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,16 @@ To propose addition of a new target, open a pull request on [`rust-lang/rust`]:
122122
r? compiler
123123
```
124124

125+
See also the documentation in the `rustc-dev-guide` on [adding a new target to
126+
`rustc`][rustc_dev_guide_add_target].
127+
125128
[tier3example]: https://github.com/rust-lang/rust/pull/94872
126129
[platform_template]: https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support/TEMPLATE.md
127130
[summary]: https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/SUMMARY.md
128131
[platformsupport]: https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support.md
129132
[rust_compiler_team]: https://www.rust-lang.org/governance/teams/compiler
130133
[`rust-lang/rust`]: https://github.com/rust-lang/rust
134+
[rustc_dev_guide_add_target]: https://rustc-dev-guide.rust-lang.org/building/new-target.html
131135

132136
## Tier 3 target policy
133137

0 commit comments

Comments
 (0)