File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,16 @@ fn main() {
41
41
42
42
let bindings = bindgen:: Builder :: default ( )
43
43
. header ( "wrapper.h" )
44
- . derive_default ( true )
45
44
. clang_args ( & [ "-x" , "c++" , "-std=c++11" ] )
46
- . clang_arg ( format ! ( "-I/usr/include/c++/11" ) )
47
- . clang_arg ( format ! ( "-I/usr/include/x86_64-linux-gnu/c++/11" ) )
48
45
. clang_arg ( format ! ( "-I{}" , xgb_root. join( "include" ) . display( ) ) )
49
46
. clang_arg ( format ! ( "-I{}" , xgb_root. join( "rabit/include" ) . display( ) ) )
50
47
. clang_arg ( format ! ( "-I{}" , xgb_root. join( "dmlc-core/include" ) . display( ) ) ) ;
51
48
49
+ #[ cfg( target_os = "linux" ) ]
50
+ let bindings = bindings
51
+ . clang_arg ( format ! ( "-I/usr/include/c++/11" ) )
52
+ . clang_arg ( format ! ( "-I/usr/include/x86_64-linux-gnu/c++/11" ) ) ;
53
+
52
54
#[ cfg( feature = "cuda" ) ]
53
55
let bindings = bindings. clang_arg ( "-I/usr/local/cuda/include" ) ;
54
56
let bindings = bindings
You can’t perform that action at this time.
0 commit comments