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:
parent
4d66ada007
commit
5dc531a38c
|
|
@ -153,7 +153,7 @@ fn get_boringssl_source_path(config: &Config) -> &PathBuf {
|
||||||
/// 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(config: &Config) -> String {
|
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
|
// Code under this branch should match the logic in cmake-rs
|
||||||
let debug_env_var = config
|
let debug_env_var = config
|
||||||
.env
|
.env
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue