From 1bc466189618ad8ba93c6ec15f57de60ccdbf5e1 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Thu, 5 Oct 2023 14:22:53 +0100 Subject: [PATCH] Update build.rs Co-authored-by: rami3l --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 312481570bc..407545c869c 100644 --- a/build.rs +++ b/build.rs @@ -31,7 +31,7 @@ fn main() { // Set linker options specific to Windows MSVC. let target_os = env::var("CARGO_CFG_TARGET_OS"); let target_env = env::var("CARGO_CFG_TARGET_ENV"); - if target_os.as_deref() != Ok("windows") && target_env.as_deref() != Ok("msvc") { + if !(target_os.as_deref() == Ok("windows") && target_env.as_deref() == Ok("msvc")) { return; }