Skip to content

Commit 20559c4

Browse files
authored
Rollup merge of #102353 - bjorn3:allow_rustix_use_libc, r=Mark-Simulacrum
Allow passing rustix_use_libc cfg using RUSTFLAGS Before this would error with ``` error: unexpected `rustix_use_libc` as condition name | = note: `-D unexpected-cfgs` implied by `-D warnings` = help: was set with `--cfg` but isn't in the `--check-cfg` expected names ``` I'm setting rustix_use_libc when testing bootstrapping rustc with cg_clif as I'm disabling inline asm here.
2 parents 649c099 + d04ea0f commit 20559c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ const EXTRA_CHECK_CFGS: &[(Option<Mode>, &'static str, Option<&[&'static str]>)]
229229
// FIXME: Used by proc-macro2, but we should not be triggering on external dependencies.
230230
(Some(Mode::Rustc), "span_locations", None),
231231
(Some(Mode::ToolRustc), "span_locations", None),
232+
// Can be passed in RUSTFLAGS to prevent direct syscalls in rustix.
233+
(None, "rustix_use_libc", None),
232234
];
233235

234236
/// A structure representing a Rust compiler.

0 commit comments

Comments
 (0)