Skip to content

Commit

Permalink
Add a note about passing in rustflags that conflict with Cargo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed May 30, 2021
1 parent 2d08c73 commit 4d3772b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doc/src/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ Without `--target`, the flags will be passed to all compiler invocations
you have args that you do not want to pass to build scripts or proc macros and
are building for the host, pass `--target` with the host triple.

It is not recommended to pass in flags that Cargo itself usually manages. For
example, the flags driven by [profiles] are best handled by setting the
appropriate profile setting.

> **Caution**: Due to the low-level nature of passing flags directly to the
> compiler, this may cause a conflict with future versions of Cargo which may
> issue the same or similar flags on its own which may interfere with the
Expand Down

0 comments on commit 4d3772b

Please sign in to comment.