From 74a453d8b01a4bca672e77520aa48bde914153b3 Mon Sep 17 00:00:00 2001 From: msoxzw <56633971+msoxzw@users.noreply.github.com> Date: Fri, 17 Jun 2022 19:02:07 +0000 Subject: [PATCH] MSVC generator hack should be only applied to MSVC --- boring-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boring-sys/build.rs b/boring-sys/build.rs index 5e0e6646..946b4bde 100644 --- a/boring-sys/build.rs +++ b/boring-sys/build.rs @@ -98,7 +98,7 @@ fn get_ios_sdk_name() -> &'static str { /// 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() -> String { - if cfg!(windows) { + if cfg!(target_env = "msvc") { // 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");