Fix infinite loop in qmake option parsing
If calling 'qmake -qtconf file' an infinite loop occurs. Bug introduced in 661b586a69740bd9a1791622f8b238d290ebe00d Pick-to: 6.1 6.1.0 6.0 Change-Id: I3ccc067570308227b605d700b41b299800aa872a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
948261d70c
commit
6b1a7341fe
@ -399,10 +399,11 @@ Option::init(int argc, char **argv)
|
|||||||
} else if (opt == "-makefile") {
|
} else if (opt == "-makefile") {
|
||||||
Option::qmake_mode = Option::QMAKE_GENERATE_MAKEFILE;
|
Option::qmake_mode = Option::QMAKE_GENERATE_MAKEFILE;
|
||||||
} else if (opt == "-qtconf") {
|
} else if (opt == "-qtconf") {
|
||||||
// Move the argument following "-qtconf <file>" in front and check again.
|
if (args.length() >= 3) {
|
||||||
if (args.length() >= 3)
|
// Move the argument following "-qtconf <file>" in front and check again.
|
||||||
args.prepend(args.takeAt(2));
|
args.prepend(args.takeAt(2));
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user