Do not warn about unknown MSVC compiler conformance options
Every /Zc:XXX option qmake doesn't know about yields a "WARNING: Could not parse Compiler option '-Zc:XXX'; added to AdditionalOptions." Put all /Zc:XXX options we don't handle into AdditionalOptions without printing a warning. There's no point in making all options known to qmake and updating them for every MSVC release. Change-Id: I319e027791a7b0a29d139ee3074ab1aed8ce8a63 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
3dd089c08b
commit
39c835b9c5
@ -950,12 +950,8 @@ bool VCCLCompilerTool::parseOption(const char* option)
|
||||
ForceConformanceInForLoopScope = ((*c) == '-' ? _False : _True);
|
||||
else if(fourth == 'w')
|
||||
TreatWChar_tAsBuiltInType = ((*c) == '-' ? _False : _True);
|
||||
else if (config->CompilerVersion >= NET2013 && strncmp(option + 4, "strictStrings", 13) == 0)
|
||||
AdditionalOptions += option;
|
||||
else if (config->CompilerVersion >= NET2015 && strncmp(option + 4, "throwingNew", 11) == 0)
|
||||
AdditionalOptions += option;
|
||||
else
|
||||
found = false;
|
||||
AdditionalOptions += option;
|
||||
} else {
|
||||
found = false; break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user