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() {
4141
4242 let bindings = bindgen:: Builder :: default ( )
4343 . header ( "wrapper.h" )
44- . derive_default ( true )
4544 . 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" ) )
4845 . clang_arg ( format ! ( "-I{}" , xgb_root. join( "include" ) . display( ) ) )
4946 . clang_arg ( format ! ( "-I{}" , xgb_root. join( "rabit/include" ) . display( ) ) )
5047 . clang_arg ( format ! ( "-I{}" , xgb_root. join( "dmlc-core/include" ) . display( ) ) ) ;
5148
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+
5254 #[ cfg( feature = "cuda" ) ]
5355 let bindings = bindings. clang_arg ( "-I/usr/local/cuda/include" ) ;
5456 let bindings = bindings
You can’t perform that action at this time.
0 commit comments