Skip to content

Commit

Permalink
SCons: Enable /WX on LINKFLAGS for MSVC with werror=yes
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Aug 17, 2023
1 parent 0511f9d commit 30bdb23
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 30bdb23

Please sign in to comment.