Skip to content

Commit 8c03c5e

Browse files
yahoNanJingyangzhong
andauthored
Fix PR of using java locator (#23)
Co-authored-by: yangzhong <yangzhong@ebay.com>
1 parent 3246fda commit 8c03c5e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use_existing_hdfs = []
2424

2525
[build-dependencies]
2626
cc = "1"
27-
bindgen = "0.71.1"
27+
bindgen = "0.64.0"
2828
java-locator = { version = "0.1.9", features = ["locate-jdk-only"] }
2929

3030
[dependencies]

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ fn get_java_dependency() -> Vec<String> {
126126
result.push(format!("-I{java_home}/include"));
127127
#[cfg(target_os = "linux")]
128128
result.push(format!("-I{java_home}/include/linux"));
129+
#[cfg(target_os = "macos")]
130+
result.push(format!("-I{java_home}/include/darwin"));
129131

130132
// libjvm link
131133
let jvm_lib_location = java_locator::locate_jvm_dyn_library().unwrap();

0 commit comments

Comments
 (0)