diff --git a/build.rs b/build.rs index 27ae926b3acc0..0e19588395b84 100644 --- a/build.rs +++ b/build.rs @@ -304,7 +304,7 @@ fn is_gnu_time64_abi() -> bool { } Err(_) => panic!("CARGO_CFG_TARGET_OS not set"), } - let ptrbits = match env::var("CARGO_CFG_TARGET_POINTER_WIDTH") { + let _ptrbits = match env::var("CARGO_CFG_TARGET_POINTER_WIDTH") { Ok(bits) => { if bits == "64" { return false; @@ -315,20 +315,20 @@ fn is_gnu_time64_abi() -> bool { }; // At this point, we _know_ it is *-*-linux-gnu* with 32 bit // pointers. Some 64 bit arch still have 32 bit pointers though. - let _arch = match env::var("CARGO_CFG_TARGET_ARCH") { - Ok(arch) => match &arch[..] { - "aarch64" | "loongarch64" | "mips64" | "mips64r6" | "powerpc64" | "riscv64" - | "s390x" | "sparc64" - if ptrbits == "32" => - { - panic!("Unexpected 32 bit pointer arch {}", arch); - } - "x86_64" => { - return false; - } - _ => arch, - }, - Err(_) => panic!("CARGO_CFG_TARGET_ARCH not set"), - }; + // let _arch = match env::var("CARGO_CFG_TARGET_ARCH") { + // Ok(arch) => match &arch[..] { + // "aarch64" | "loongarch64" | "mips64" | "mips64r6" | "powerpc64" | "riscv64" + // | "s390x" | "sparc64" | "x86_64" + // if ptrbits == "32" => + // { + // panic!("Unexpected 32 bit pointer arch {}", arch); + // } + // // "x86_64" => { + // // return false; + // // } + // _ => arch, + // }, + // Err(_) => panic!("CARGO_CFG_TARGET_ARCH not set"), + // }; return true; }