Skip to content

Commit 2d08c73

Browse files
committed
Add a note about rustflags compatibility.
1 parent b1684e2 commit 2d08c73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/src/reference/config.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,12 @@ Without `--target`, the flags will be passed to all compiler invocations
349349
you have args that you do not want to pass to build scripts or proc macros and
350350
are building for the host, pass `--target` with the host triple.
351351

352+
> **Caution**: Due to the low-level nature of passing flags directly to the
353+
> compiler, this may cause a conflict with future versions of Cargo which may
354+
> issue the same or similar flags on its own which may interfere with the
355+
> flags you specify. This is an area where Cargo may not always be backwards
356+
> compatible.
357+
352358
##### `build.rustdocflags`
353359
* Type: string or array of strings
354360
* Default: none

0 commit comments

Comments
 (0)