Skip to content

Commit edf6e75

Browse files
authored
Merge pull request #8 from postgresml/levkk-manually-include-paths
Fix linux build
2 parents ab54768 + 06b27de commit edf6e75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightgbm-sys/build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ fn main() {
5858
.clang_args(&["-x", "c++", "-std=c++11"])
5959
.clang_arg(format!("-I{}", lgbm_root.join("include").display()));
6060

61+
#[cfg(target_os = "linux")]
62+
let bindings = bindings
63+
.clang_arg(format!("-I/usr/include/c++/11"))
64+
.clang_arg(format!("-I/usr/include/x86_64-linux-gnu/c++/11"));
65+
6166
#[cfg(feature = "cuda")]
6267
let bindings = bindings.clang_arg("-I/usr/local/cuda/include");
6368

0 commit comments

Comments
 (0)