Skip to content

Commit 01aef88

Browse files
committed
Manually include c++11 paths
1 parent 8f3a8fb commit 01aef88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xgboost-sys/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ fn main() {
4141

4242
let bindings = bindgen::Builder::default()
4343
.header("wrapper.h")
44+
.derive_default(true)
4445
.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"))
4548
.clang_arg(format!("-I{}", xgb_root.join("include").display()))
4649
.clang_arg(format!("-I{}", xgb_root.join("rabit/include").display()))
4750
.clang_arg(format!("-I{}", xgb_root.join("dmlc-core/include").display()));

0 commit comments

Comments
 (0)