File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -162,14 +162,6 @@ pub fn main() {
162
162
let mut bind_args: Vec < _ > = env:: args ( ) . collect ( ) ;
163
163
let bin = bind_args. remove ( 0 ) ;
164
164
165
- match bindgen:: get_include_dir ( ) {
166
- Some ( path) => {
167
- bind_args. push ( "-I" . to_owned ( ) ) ;
168
- bind_args. push ( path) ;
169
- }
170
- None => ( ) ,
171
- }
172
-
173
165
match parse_args ( & bind_args[ ..] ) {
174
166
ParseResult :: ParseErr ( e) => panic ! ( e) ,
175
167
ParseResult :: CmdUsage => print_usage ( bin) ,
Original file line number Diff line number Diff line change @@ -116,7 +116,10 @@ impl Default for BindgenOptions {
116
116
emit_ast : false ,
117
117
fail_on_unknown_type : false ,
118
118
override_enum_ty : "" . to_string ( ) ,
119
- clang_args : Vec :: new ( )
119
+ clang_args : match get_include_dir ( ) {
120
+ Some ( path) => vec ! ( "-idirafter" . to_owned( ) , path) ,
121
+ None => Vec :: new ( )
122
+ }
120
123
}
121
124
}
122
125
}
You can’t perform that action at this time.
0 commit comments