Skip to content

Commit

Permalink
boring-sys: Don't check for MSVC with target_env
Browse files Browse the repository at this point in the history
x86_64-pc-windows-gnu is identified as `target_env = "msvc"` too,
but doesn't use the Visual Studio CMake generator.
  • Loading branch information
jrose-signal authored and eager-signal committed Nov 30, 2023
1 parent 34fc414 commit bb58482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boring-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ fn get_boringssl_source_path(config: &Config) -> &PathBuf {
/// so adjust library location based on platform and build target.
/// See issue: https://github.com/alexcrichton/cmake-rs/issues/18
fn get_boringssl_platform_output_path(config: &Config) -> String {
if config.target_env == "msvc" {
if config.target.ends_with("-msvc") {
// Code under this branch should match the logic in cmake-rs
let debug_env_var = config
.env
Expand Down

0 comments on commit bb58482

Please sign in to comment.