From 33874920cb53688d9069cdd13ed7d11336888e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 17 Aug 2023 13:01:15 +0200 Subject: [PATCH] SCons: Enable `/WX` on LINKFLAGS for MSVC with `werror=yes` (cherry picked from commit 30bdb23f03dd90ca255ca6d8fb035f94250b668c) --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index 8b41918de..81ef3b0ae 100644 --- a/SConstruct +++ b/SConstruct @@ -510,6 +510,7 @@ if selected_platform in platform_list: if env["werror"]: env.Append(CCFLAGS=["/WX"]) + env.Append(LINKFLAGS=["/WX"]) else: # GCC, Clang version = methods.get_compiler_version(env) or [-1, -1]