Skip to content

Commit 75724bc

Browse files
authored
remove target override for bindgen because it isn't necessary (#112)
1 parent 20dbd71 commit 75724bc

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

build.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,8 @@ fn build(sdk_path: Option<&str>, target: &str) {
120120
// Begin building the bindgen params.
121121
let mut builder = bindgen::Builder::default();
122122

123-
// See https://github.com/rust-lang/rust-bindgen/issues/1211
124-
// Technically according to the llvm mailing list, the argument to clang here should be
125-
// -arch arm64 but it looks cleaner to just change the target.
126-
let target = if target == "aarch64-apple-ios" {
127-
"arm64-apple-ios"
128-
} else if target == "aarch64-apple-darwin" {
129-
"arm64-apple-darwin"
130-
} else {
131-
target
132-
};
133123
builder = builder.size_t_is_usize(true);
134124

135-
builder = builder.clang_args(&[&format!("--target={}", target)]);
136-
137125
if let Some(sdk_path) = sdk_path {
138126
builder = builder.clang_args(&["-isysroot", sdk_path]);
139127
}

0 commit comments

Comments
 (0)