Skip to content
Permalink
Browse files

compiler.pri: treat warnings as errors for MSVC (-WX).

  • Loading branch information...
mkrautz committed Nov 24, 2015
1 parent 114495e commit c52d1a32f1a7dd98d1d2697d93e31fd391a33a53
Showing with 4 additions and 0 deletions.
  1. +4 −0 compiler.pri
@@ -45,6 +45,10 @@ win32 {
error("The INCLUDE environment variable is not set. Are you not in a build environment?")
}

# Treat warnings as errors
QMAKE_CFLAGS *= -WX
QMAKE_CXXFLAGS *= -WX

# Increase PCH heap to 150MB: https://msdn.microsoft.com/en-us/library/bdscwf1c.aspx
QMAKE_CFLAGS *= -Zm200
QMAKE_CXXFLAGS *= -Zm200

0 comments on commit c52d1a3

Please sign in to comment.
You can’t perform that action at this time.