Skip to content

Commit 661b586

Browse files
committed
Make "qmake -qtconf my-qt.conf -query" possible
It's now possible to put the -qtconf argument in front of the -query argument (and others). Fixes: QTBUG-85136 Change-Id: I74b78f084acf264ef637ed2f6cb63b655b176056 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
1 parent 4bf8f70 commit 661b586

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

qmake/option.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,11 @@ Option::init(int argc, char **argv)
420420
Option::qmake_mode = Option::QMAKE_QUERY_PROPERTY;
421421
} else if (opt == "-makefile") {
422422
Option::qmake_mode = Option::QMAKE_GENERATE_MAKEFILE;
423+
} else if (opt == "-qtconf") {
424+
// Move the argument following "-qtconf <file>" in front and check again.
425+
if (args.length() >= 3)
426+
args.prepend(args.takeAt(2));
427+
continue;
423428
} else {
424429
break;
425430
}

0 commit comments

Comments
 (0)