Skip to content

Commit 30c56c6

Browse files
authored
Rollup merge of #135992 - madsmtm:new-target-docs, r=jieyouxu
Improve documentation when adding a new target rust-lang/rust#133631 (comment) shows that it can be a bit difficult process-wise to add a new target. I've added a bit of text to the docs, suggesting that users add the target defintion/spec first, and later work on `std` support. I also found that we have two places where we document how to add a new target. I've linked these for now, but they should probably be merged somehow in the future. `@rustbot` label A-docs r? compiler CC `@workingjubilee` who's worked a lot on target specs IIRC.
2 parents 40ae68c + 2e06086 commit 30c56c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/building/new-target.md

+5
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

0 commit comments

Comments
 (0)