Merge pull request #80711 from akien-mga/scons-msvc-werror-link-flags
SCons: Enable `/WX` on LINKFLAGS for MSVC with `werror=yes`
This commit is contained in:
commit
ff5c884153
1 changed files with 1 additions and 0 deletions
|
@ -752,6 +752,7 @@ if selected_platform in platform_list:
|
||||||
|
|
||||||
if env["werror"]:
|
if env["werror"]:
|
||||||
env.Append(CCFLAGS=["/WX"])
|
env.Append(CCFLAGS=["/WX"])
|
||||||
|
env.Append(LINKFLAGS=["/WX"])
|
||||||
else: # GCC, Clang
|
else: # GCC, Clang
|
||||||
common_warnings = []
|
common_warnings = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue