Selaa lähdekoodia

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

(cherry picked from commit 30bdb23f03dd90ca255ca6d8fb035f94250b668c)
Rémi Verschelde 2 vuotta sitten
vanhempi
commit
1a29530a99
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      SConstruct

+ 1 - 0
SConstruct

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