Skip to content

Commit

Permalink
Link Bcrypt on Windows for Rust >=1.57
Browse files Browse the repository at this point in the history
std depends on Bcrypt on Windows starting with rust 1.57.
See rust-lang/rust#84096.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
  • Loading branch information
jschwe committed Dec 18, 2021
1 parent f679545 commit d0eae73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generator/src/subcommands/gen_cmake/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ impl Platform {
libs.extend_from_slice(&["shell32".to_string(), "kernel32".to_string()]);
}

if version >= &Version::parse("1.57.0").unwrap() {
libs.extend_from_slice(&["bcrypt".to_string()]);
}

(libs, libs_debug, libs_release)
}
OS::MacOS => (
Expand Down

0 comments on commit d0eae73

Please sign in to comment.