]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Rollup merge of #102353 - bjorn3:allow_rustix_use_libc, r=Mark-Simulacrum
[rust.git] / src / bootstrap / lib.rs
index cb18e14fa36d6c09d25f7d33e84d6164822847b8..4ce09c7eec75a3bc9695d9d13b7c5c4f02a8e33f 100644 (file)
@@ -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.