Don't consider it cross-compilation when building for 32-bit Windows on 64-bit windows
This commit is contained in:
parent
b7f45c4fbf
commit
62ad53f9fc
4
build.rs
4
build.rs
|
@ -148,7 +148,9 @@ impl CrossCompileConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cross_compiling() -> Result<Option<CrossCompileConfig>> {
|
fn cross_compiling() -> Result<Option<CrossCompileConfig>> {
|
||||||
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);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue