File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -120,20 +120,8 @@ fn build(sdk_path: Option<&str>, target: &str) {
120
120
// Begin building the bindgen params.
121
121
let mut builder = bindgen:: Builder :: default ( ) ;
122
122
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
- } ;
133
123
builder = builder. size_t_is_usize ( true ) ;
134
124
135
- builder = builder. clang_args ( & [ & format ! ( "--target={}" , target) ] ) ;
136
-
137
125
if let Some ( sdk_path) = sdk_path {
138
126
builder = builder. clang_args ( & [ "-isysroot" , sdk_path] ) ;
139
127
}
You can’t perform that action at this time.
0 commit comments