Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/building/new-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ const STAGE0_MISSING_TARGETS: &[&str] = &[
## Patching crates

You may need to make changes to crates that the compiler depends on,
such as [`libc`][] or [`cc`][]. If so, you can use Cargo's
such as [`libc`][] or [`cc`][].

For instance, [`cc`][] only supports a hardcoded list of targets, if your target is not known to [`cc`][],
you will need to maintain a fork of [`cc`][] until it lands in nightly and the auto-generated list has been updated.

If so, you can use Cargo's
[`[patch]`][patch] ability. For example, if you want to use an
unreleased version of `libc`, you can add it to the top-level
`Cargo.toml` file:
Expand Down