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) {
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    } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments