From 64b4d1462917a5e814ea8c066028c5d0a09c188f Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sat, 14 Aug 2021 01:02:39 +0800 Subject: [PATCH] fix on 32 --- libs/scrap/build.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/scrap/build.rs b/libs/scrap/build.rs index 62b035026..a2707d561 100644 --- a/libs/scrap/build.rs +++ b/libs/scrap/build.rs @@ -10,12 +10,8 @@ fn find_package(name: &str) -> Vec { let mut target_arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); if target_arch == "x86_64" { target_arch = "x64".to_owned(); - } else if target_arch == "i686" { - target_arch = "x86".to_owned(); } else if target_arch == "aarch64" { target_arch = "arm64".to_owned(); - } else { - target_arch = "arm".to_owned(); } let mut target = if target_os == "macos" { "x64-osx".to_owned() @@ -24,7 +20,7 @@ fn find_package(name: &str) -> Vec { } else { format!("{}-{}", target_arch, target_os) }; - if target_arch == "i686" { + if target_arch == "x86" { target = target.replace("x64", "x86"); } println!("cargo:info={}", target);