diff --git a/build.rs b/build.rs index 9a61050e..0e2ce15f 100644 --- a/build.rs +++ b/build.rs @@ -148,7 +148,9 @@ impl CrossCompileConfig { } fn cross_compiling() -> Result> { - if env::var("TARGET")? == env::var("HOST")? { + let target = env::var("TARGET")?; + let host = env::var("HOST")?; + if target == host || (target == "i686-pc-windows-msvc" && host == "x86_64-pc-windows-msvc") { return Ok(None); }