aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-12-05 16:53:56 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2012-12-05 17:06:37 +0100
commit18ca08cc1eed536c516284c13fe8d7805c107099 (patch)
treea68d21434d1306f012ace3cc4aa67247e79be2fb
parent08cf377080fd97dd90109bb7bdb34890bc9f47b2 (diff)
Respect "warnings as errors" setting with MSVC compiler.
Change-Id: Ie073900e9072f812f0e7c11ce28d71d6d432d4d9 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r--share/qbs/modules/cpp/msvc.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js
index 394d9431c..1368b6047 100644
--- a/share/qbs/modules/cpp/msvc.js
+++ b/share/qbs/modules/cpp/msvc.js
@@ -33,6 +33,8 @@ function prepareCompiler(product, input, outputs, platformDefines, defines, incl
args.push('/w')
if (warningLevel === 'all')
args.push('/Wall')
+ if (input.module.treatWarningsAsErrors)
+ args.push('/WX')
for (i in includePaths)
args.push('/I' + FileInfo.toWindowsSeparators(includePaths[i]))
for (i in systemIncludePaths)