X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Funwind%2Fbuild.rs;h=f88e6a924b5f04ef9bb756b5192f722c018f551f;hb=75307c22f33cb47966466ba1daca08573a3c583e;hp=61d3f45ca6523bd003cd97a391cbe6072034daf1;hpb=38e3f523c0e4ba47614f30830c4e631e57810ce1;p=rust.git diff --git a/library/unwind/build.rs b/library/unwind/build.rs index 61d3f45ca65..f88e6a924b5 100644 --- a/library/unwind/build.rs +++ b/library/unwind/build.rs @@ -36,7 +36,7 @@ fn main() { println!("cargo:rustc-link-lib=gcc_s"); } else if target.contains("dragonfly") { println!("cargo:rustc-link-lib=gcc_pic"); - } else if target.contains("pc-windows-gnu") { + } else if target.ends_with("pc-windows-gnu") { // This is handled in the target spec with late_link_args_[static|dynamic] } else if target.contains("uwp-windows-gnu") { println!("cargo:rustc-link-lib=unwind");