Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cc-rs MUST be forked for new targets #2264

Closed
wants to merge 1 commit into from
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