aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-08-29 13:57:10 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2016-08-29 13:57:10 +0200
commit784f4ad77d5c086518afe885b570f4e09a5938e0 (patch)
treecfe19c7e7c798dfb7b74a1aa44331ae4e1226787 /share
parent95eea53e12ac964efe72e9145b7d822d239d4ef1 (diff)
parent65a7c527a6210a751b2b8b5e9e8fe46a14806d28 (diff)
Merge 1.6 into master
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/cpp/msvc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js
index fa3eee37a..b8464a651 100644
--- a/share/qbs/modules/cpp/msvc.js
+++ b/share/qbs/modules/cpp/msvc.js
@@ -123,7 +123,7 @@ function prepareCompiler(project, product, inputs, outputs, input, output) {
if (defines)
allDefines = allDefines.uniqueConcat(defines);
for (i in allDefines)
- args.push('/D' + allDefines[i])
+ args.push('/D' + allDefines[i].replace(/%/g, "%%"));
var minimumWindowsVersion = ModUtils.moduleProperty(product, "minimumWindowsVersion");
if (minimumWindowsVersion) {