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:
parent
de0b511daa
commit
d04ea0ff19
@ -229,6 +229,8 @@ pub unsafe fn setup(_build: &mut crate::Build) {}
|
||||
// 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