From 12de968d65f756ee4099690fc23a78d432e9c28a Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Wed, 7 Aug 2024 04:12:37 +0200 Subject: [PATCH] Fix incorrect cfg! target_arch for x86 --- winfsp_wrs_build/src/lib.rs | 2 +- winfsp_wrs_sys/build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/winfsp_wrs_build/src/lib.rs b/winfsp_wrs_build/src/lib.rs index 4cd8e0a..7f10387 100644 --- a/winfsp_wrs_build/src/lib.rs +++ b/winfsp_wrs_build/src/lib.rs @@ -11,7 +11,7 @@ pub fn build() { if cfg!(target_arch = "x86_64") { println!("cargo:rustc-link-lib=dylib=delayimp"); println!("cargo:rustc-link-arg=/DELAYLOAD:winfsp-x64.dll"); - } else if cfg!(target_arch = "i686") { + } else if cfg!(target_arch = "x86") { println!("cargo:rustc-link-lib=dylib=delayimp"); println!("cargo:rustc-link-arg=/DELAYLOAD:winfsp-x86.dll"); } else if cfg!(target_arch = "aarch64") { diff --git a/winfsp_wrs_sys/build.rs b/winfsp_wrs_sys/build.rs index 1b97695..4fc6673 100644 --- a/winfsp_wrs_sys/build.rs +++ b/winfsp_wrs_sys/build.rs @@ -26,7 +26,7 @@ fn main() { if cfg!(all(target_os = "windows", target_env = "msvc")) { if cfg!(target_arch = "x86_64") { println!("cargo:rustc-link-lib=dylib=winfsp-x64"); - } else if cfg!(target_arch = "i686") { + } else if cfg!(target_arch = "x86") { println!("cargo:rustc-link-lib=dylib=winfsp-x86"); } else if cfg!(target_arch = "aarch64") { println!("cargo:rustc-link-lib=dylib=winfsp-a64");