summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-05-22 12:14:09 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-05-23 17:25:50 +0000
commit808cc8853bbeaa9ee3ef11006a90b6ffdef1b606 (patch)
tree2a86e99822c0a8c105cbb22991631ef26a0d10c8 /qmake
parentb09c4cc48e98e670c899545c8e7ebeaa5279bb96 (diff)
Fix parsing of MSVC's /utf-8 option, take 2
The dash was missing. This commit amends 70e772079. Task-number: QTBUG-59431 Change-Id: I18f3519a502ca57336cafad574f8738f2e717740 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/win32/msvc_objectmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/win32/msvc_objectmodel.cpp b/qmake/generators/win32/msvc_objectmodel.cpp
index 9aa73c084c..579d3117ef 100644
--- a/qmake/generators/win32/msvc_objectmodel.cpp
+++ b/qmake/generators/win32/msvc_objectmodel.cpp
@@ -1151,7 +1151,7 @@ bool VCCLCompilerTool::parseOption(const char* option)
case 'u':
if (!second)
UndefineAllPreprocessorDefinitions = _True;
- else if (second == 't' && third == 'f' && fourth == '8')
+ else if (strcmp(option + 2, "tf-8") == 0)
AdditionalOptions += option;
else
found = false;