Check staticlib name falls back to rust_out

This commit is contained in:
Chris Denton 2024-08-05 23:50:15 +00:00
parent c6d94821f0
commit 3fd645e254
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE

View File

@ -1,9 +1,13 @@
//@ only-windows
// Reason: dos devices are a Windows thing
use run_make_support::rustc;
use std::path::Path;
use run_make_support::{rustc, static_lib_name};
fn main() {
rustc().input(r"\\.\NUL").crate_type("staticlib").run();
rustc().input(r"\\?\NUL").crate_type("staticlib").run();
assert!(Path::new(&static_lib_name("rust_out")).exists());
}