From c80dbaf8ff5902ca670e0a48bbe495065b9314f5 Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Thu, 4 Jan 2024 14:53:35 +0800 Subject: [PATCH] Set limb width to 64 for loongarch64 --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 1a8c89828..dd09e62a3 100644 --- a/build.rs +++ b/build.rs @@ -7,7 +7,7 @@ fn main() { // src/lexical/math.rs for where this has an effect. let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap(); match target_arch.as_str() { - "aarch64" | "mips64" | "powerpc64" | "x86_64" => { + "aarch64" | "mips64" | "powerpc64" | "x86_64" | "loongarch64" => { println!("cargo:rustc-cfg=limb_width_64"); } _ => {