Skip to content

Commit

Permalink
fix: Link to shlwapi on Windows (again) as workaround
Browse files Browse the repository at this point in the history
Signed-off-by: robot9001 <robo9k@symlink.io>
  • Loading branch information
robo9k committed Oct 7, 2023
1 parent 63c410f commit 317f4ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ fn try_vcpkg() -> LibraryResult<vcpkg::Error, vcpkg::Library> {
vcpkg::Error::DisabledByEnv(_) => LibraryResult::Skipped(err),
_ => LibraryResult::Failed(err),
},
Ok(lib) => LibraryResult::Success(lib),
Ok(lib) => {
// workaround, see https://github.com/robo9k/rust-magic-sys/pull/16#issuecomment-949094327
println!("cargo:rustc-link-lib=shlwapi");

LibraryResult::Success(lib)
},
}
}

Expand Down

0 comments on commit 317f4ce

Please sign in to comment.