MSVC generator hack should be only applied to MSVC

This commit is contained in:
msoxzw 2022-06-17 19:02:07 +00:00 committed by Joshua Nelson
parent ccc0128cba
commit 74a453d8b0
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ fn get_ios_sdk_name() -> &'static str {
/// so adjust library location based on platform and build target. /// so adjust library location based on platform and build target.
/// See issue: https://github.com/alexcrichton/cmake-rs/issues/18 /// See issue: https://github.com/alexcrichton/cmake-rs/issues/18
fn get_boringssl_platform_output_path() -> String { fn get_boringssl_platform_output_path() -> String {
if cfg!(windows) { if cfg!(target_env = "msvc") {
// Code under this branch should match the logic in cmake-rs // Code under this branch should match the logic in cmake-rs
let debug_env_var = std::env::var("DEBUG").expect("DEBUG variable not defined in env"); let debug_env_var = std::env::var("DEBUG").expect("DEBUG variable not defined in env");