mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
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.
This commit is contained in:
commit
20559c41e8
@ -229,6 +229,8 @@ const EXTRA_CHECK_CFGS: &[(Option<Mode>, &'static str, Option<&[&'static str]>)]
|
||||
// FIXME: Used by proc-macro2, but we should not be triggering on external dependencies.
|
||||
(Some(Mode::Rustc), "span_locations", None),
|
||||
(Some(Mode::ToolRustc), "span_locations", None),
|
||||
// Can be passed in RUSTFLAGS to prevent direct syscalls in rustix.
|
||||
(None, "rustix_use_libc", None),
|
||||
];
|
||||
|
||||
/// A structure representing a Rust compiler.
|
||||
|
Loading…
Reference in New Issue
Block a user