SCons: Enable /WX on LINKFLAGS for MSVC with werror=yes

(cherry picked from commit 30bdb23f03dd90ca255ca6d8fb035f94250b668c)
This commit is contained in:
Rémi Verschelde 2023-08-17 13:01:15 +02:00 committed by Relintai
parent 58d1095e8a
commit 33874920cb

View File

@ -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]