Skip to content

Commit

Permalink
Fix incorrect cfg! target_arch for x86
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Aug 7, 2024
1 parent b14f9ad commit 12de968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion winfsp_wrs_build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
2 changes: 1 addition & 1 deletion winfsp_wrs_sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 12de968

Please sign in to comment.