qmake/MSVC: fix parsing of the /openmp option
Task-number: QTBUG-29143 Change-Id: I6b1ce0babf51701fa404b821b22060a87c4f46b2 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
9c1628aae3
commit
be8c47b140
@ -1078,11 +1078,20 @@ bool VCCLCompilerTool::parseOption(const char* option)
|
||||
}
|
||||
found = false; break;
|
||||
case 'o':
|
||||
if (second == 'p' && third == 'e' && fourth == 'n') {
|
||||
{
|
||||
const char *str = option + 2;
|
||||
const size_t len = strlen(str);
|
||||
if (len >= 5 && len <= 6 && strncmp(str, "penmp", 5) == 0) {
|
||||
if (len == 5) {
|
||||
OpenMP = _True;
|
||||
break;
|
||||
} else if (str[5] == '-') {
|
||||
OpenMP = _False;
|
||||
break;
|
||||
}
|
||||
}
|
||||
found = false; break;
|
||||
}
|
||||
case 's':
|
||||
if(second == 'h' && third == 'o' && fourth == 'w') {
|
||||
ShowIncludes = _True;
|
||||
|
Loading…
Reference in New Issue
Block a user