Skip to content

Commit 503dcbf

Browse files
committed
Link shlwapi on windows
1 parent a119812 commit 503dcbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hdf5-sys/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,10 @@ impl Config {
684684
println!("cargo:rustc-cfg=feature=\"have-filter-deflate\"");
685685
println!("cargo:have_filter_deflate=1");
686686
}
687+
688+
if cfg!(windows) && version >= Version::new(1, 14, 0) {
689+
println!("cargo:rustc-link-lib=shlwapi");
690+
}
687691
}
688692

689693
fn check_against_features_required(&self) {

0 commit comments

Comments
 (0)