Skip to content

Commit f3e0f12

Browse files
committed
Recommend adding target spec first, then std support later
1 parent 11de4b7 commit f3e0f12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ To propose addition of a new target, open a pull request on [`rust-lang/rust`]:
125125
See also the documentation in the `rustc-dev-guide` on [adding a new target to
126126
`rustc`][rustc_dev_guide_add_target].
127127

128+
Note that crates like `libc` and `cc` may not accept your patches before the
129+
`rustc` target specification itself exists, so it is recommended that you
130+
start out with a minimal pull request adding just that (i.e. only
131+
`#![no_core]` support), and then slowly expand the support in later pull
132+
requests.
133+
128134
[tier3example]: https://github.com./rust-lang/rust/pull/94872
129135
[platform_template]: https://github.com./rust-lang/rust/blob/master/src/doc/rustc/src/platform-support/TEMPLATE.md
130136
[summary]: https://github.com./rust-lang/rust/blob/master/src/doc/rustc/src/SUMMARY.md

0 commit comments

Comments
 (0)