From cce1ce0ee084600c6f794eeccf7cba92688532c3 Mon Sep 17 00:00:00 2001 From: wangweijie <51752888+wxpppp@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:08:35 +0800 Subject: [PATCH] Add loongarch64 support (#7244) Signed-off-by: wangweijie --- libs/scrap/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/scrap/build.rs b/libs/scrap/build.rs index 90518eb9b..1612a6b5b 100644 --- a/libs/scrap/build.rs +++ b/libs/scrap/build.rs @@ -31,6 +31,8 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf { target_arch = "x64".to_owned(); } else if target_arch == "x86" { target_arch = "x86".to_owned(); + } else if target_arch == "loongarch64" { + target_arch = "loongarch64".to_owned(); } else if target_arch == "aarch64" { target_arch = "arm64".to_owned(); } else {