1
0
Fork 0
firefox/third_party/rust/winreg/build.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

11 lines
488 B
Rust

fn main() {
if std::env::var("CARGO_CFG_WINDOWS").is_err() {
eprintln!("error: winreg is only supported on Windows platforms");
eprintln!(
"help: if your application is multi-platform, use \
`[target.'cfg(windows)'.dependencies] winreg = \"...\"`"
);
eprintln!("help: if your application is only supported on Windows, use `--target x86_64-pc-windows-gnu` or some other windows platform");
std::process::exit(1);
}
}