Skip to content

Commit 74a453d

Browse files
msoxzwjyn514
authored andcommitted
MSVC generator hack should be only applied to MSVC
1 parent ccc0128 commit 74a453d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boring-sys/build.rs

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

0 commit comments

Comments
 (0)