summaryrefslogtreecommitdiffstats
path: root/third_party/rust/winreg/build.rs
blob: 7acab766409a1b623070a0bf2fe5b7e519235466 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
    }
}