Skip to content

Commit

Permalink
Merge pull request #80711 from akien-mga/scons-msvc-werror-link-flags
Browse files Browse the repository at this point in the history
SCons: Enable `/WX` on LINKFLAGS for MSVC with `werror=yes`
  • Loading branch information
akien-mga committed Aug 18, 2023
2 parents d817674 + 30bdb23 commit ff5c884
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ if selected_platform in platform_list:

if env["werror"]:
env.Append(CCFLAGS=["/WX"])
env.Append(LINKFLAGS=["/WX"])
else: # GCC, Clang
common_warnings = []

Expand Down

0 comments on commit ff5c884

Please sign in to comment.