Set GenerateDebugInformation to true in vcproj if at least /DEBUG is set
If the command line option contains /DEBUG without the following argument, GenerateDebugInformation remained 'false' because the DebugInfoOption contained the initial value. Set GenerateDebugInformation to 'true' if the /DEBUG option is found and reset to 'false' only if option is set to 'none'. Amends commit 6a6b27940d497b29672ff65ff242fe0211603f22. Fixes: QTBUG-110068 Change-Id: I792d7335d8b9536d4beed54cabfd70dcf54f09ac Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 0e3ef4111271761ede6cbbeb3b0fa075a483085e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
818ce40e10
commit
934735822a
@ -1478,7 +1478,8 @@ bool VCLinkerTool::parseOption(const char* option)
|
||||
EnableUAC = _True;
|
||||
break;
|
||||
case 0x3389797: // /DEBUG[:{FASTLINK|FULL|NONE}]
|
||||
if (config->CompilerVersion >= NET2015) {
|
||||
DebugInfoOption = linkerDebugOptionEnabled;
|
||||
if (config->CompilerVersion >= NET2015 && *(option + 6) == ':') {
|
||||
const char *str = option + 7;
|
||||
if (qstricmp(str, "fastlink") == 0)
|
||||
DebugInfoOption = linkerDebugOptionFastLink;
|
||||
|
@ -258,6 +258,7 @@ enum inlineExpansionOption {
|
||||
};
|
||||
enum linkerDebugOption {
|
||||
linkerDebugOptionNone,
|
||||
linkerDebugOptionEnabled, // represents /DEBUG without further options
|
||||
linkerDebugOptionFastLink,
|
||||
linkerDebugOptionFull
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user