boring-sys: Don't check for MSVC with target_env

x86_64-pc-windows-gnu is identified as `target_env = "msvc"` too,
but doesn't use the Visual Studio CMake generator.
This commit is contained in:
Jordan Rose 2023-10-13 17:36:20 -07:00 committed by Anthony Ramine
parent 4d66ada007
commit 5dc531a38c
1 changed files with 1 additions and 1 deletions

View File

@ -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