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

(cherry picked from commit 30bdb23f03)
This commit is contained in:
Rémi Verschelde 2023-08-17 13:01:15 +02:00
parent b08e61640f
commit 1a29530a99
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -506,6 +506,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]