You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #10141 - ehuss:note-rustflags-removal, r=alexcrichton
Add note about RUSTFLAGS removal from build scripts.
The RUSTFLAGS environment variable was removed from build scripts in #9601, but the release notes did not make a note of this change. This adds a highlight to this potentially breaking change.
Copy file name to clipboardExpand all lines: src/doc/src/reference/environment-variables.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -353,10 +353,10 @@ let out_dir = env::var("OUT_DIR").unwrap();
353
353
changed by editing `.cargo/config.toml`; see the documentation
354
354
about [cargo configuration][cargo-config] for more
355
355
information.
356
-
*`CARGO_ENCODED_RUSTFLAGS` — extra flags that Cargo invokes `rustc`
357
-
with, separated by a `0x1f` character
358
-
(ASCII Unit Separator). See
359
-
[`build.rustflags`].
356
+
*`CARGO_ENCODED_RUSTFLAGS` — extra flags that Cargo invokes `rustc` with,
357
+
separated by a `0x1f` character (ASCII Unit Separator). See
358
+
[`build.rustflags`]. Note that since Rust 1.55, `RUSTFLAGS` is removed from
359
+
the environment; scripts should use `CARGO_ENCODED_RUSTFLAGS` instead.
360
360
*`CARGO_PKG_<var>` - The package information variables, with the same names and values as are [provided during crate building][variables set for crates].
0 commit comments