Skip to content

Commit 1c396f7

Browse files
authored
Merge pull request #5 from postgresml/levkk-manually-include-paths
Manually include c++11 paths on Linux
2 parents 8f3a8fb + 6c254b2 commit 1c396f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xgboost-sys/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ fn main() {
4646
.clang_arg(format!("-I{}", xgb_root.join("rabit/include").display()))
4747
.clang_arg(format!("-I{}", xgb_root.join("dmlc-core/include").display()));
4848

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+
4954
#[cfg(feature = "cuda")]
5055
let bindings = bindings.clang_arg("-I/usr/local/cuda/include");
5156
let bindings = bindings

0 commit comments

Comments
 (0)