Skip to content

Commit b024fc8

Browse files
committed
Recognize brew 1.14
1 parent abb606d commit b024fc8

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

hdf5-sys/build.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,15 @@ mod macos {
305305
}
306306
// We have to explicitly support homebrew since the HDF5 bottle isn't
307307
// packaged with pkg-config metadata.
308-
let (v18, v110, v112) = if let Some(version) = config.version {
308+
let (v18, v110, v112, v114) = if let Some(version) = config.version {
309309
(
310310
version.major == 1 && version.minor == 8,
311311
version.major == 1 && version.minor == 10,
312312
version.major == 1 && version.minor == 12,
313+
version.major == 1 && version.minor == 14,
313314
)
314315
} else {
315-
(false, false, false)
316+
(false, false, false, false)
316317
};
317318
println!(
318319
"Attempting to find HDF5 via Homebrew ({})...",
@@ -322,10 +323,19 @@ mod macos {
322323
"1.10.*"
323324
} else if v112 {
324325
"1.12.*"
326+
} else if v114 {
327+
"1.14.*"
325328
} else {
326329
"any version"
327330
}
328331
);
332+
if !(v18 || v110 || v112) {
333+
if let Some(out) = run_command("brew", &["--prefix", "[email protected]"]) {
334+
if is_root_dir(&out) {
335+
config.inc_dir = Some(PathBuf::from(out).join("include"));
336+
}
337+
}
338+
}
329339
if !(v18 || v110) {
330340
if let Some(out) = run_command("brew", &["--prefix", "[email protected]"]) {
331341
if is_root_dir(&out) {

0 commit comments

Comments
 (0)