From e0980d39c0c82af53b6968450783c1baca6b5272 Mon Sep 17 00:00:00 2001 From: Dusty DeWeese Date: Tue, 1 Apr 2025 16:19:48 -0700 Subject: [PATCH] remove target override for bindgen because it isn't necessary --- build.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/build.rs b/build.rs index f3373cd..9268a95 100644 --- a/build.rs +++ b/build.rs @@ -120,20 +120,8 @@ fn build(sdk_path: Option<&str>, target: &str) { // Begin building the bindgen params. let mut builder = bindgen::Builder::default(); - // See https://github.com/rust-lang/rust-bindgen/issues/1211 - // Technically according to the llvm mailing list, the argument to clang here should be - // -arch arm64 but it looks cleaner to just change the target. - let target = if target == "aarch64-apple-ios" { - "arm64-apple-ios" - } else if target == "aarch64-apple-darwin" { - "arm64-apple-darwin" - } else { - target - }; builder = builder.size_t_is_usize(true); - builder = builder.clang_args(&[&format!("--target={}", target)]); - if let Some(sdk_path) = sdk_path { builder = builder.clang_args(&["-isysroot", sdk_path]); }