Fix handling of -v/-verbose command line flags to configure
This is not a feature that should get propagated to other configure runs, so simply hardcode support for it. Change-Id: Ieb1c33243154b3583e91061d3592d7e87c36f402 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
3114237877
commit
c167308c5d
@ -169,8 +169,6 @@
|
||||
"testcocoon": "boolean",
|
||||
"tslib": "boolean",
|
||||
"use-gold-linker": { "type": "boolean", "name": "use_gold_linker" },
|
||||
"v": { "type": "void", "name": "verbose" },
|
||||
"verbose": "void",
|
||||
"warnings-are-errors": { "type": "boolean", "name": "warnings_are_errors" },
|
||||
"Werror": { "type": "boolean", "name": "warnings_are_errors" },
|
||||
"widgets": "boolean",
|
||||
@ -943,13 +941,6 @@
|
||||
},
|
||||
|
||||
"features": {
|
||||
"verbose": {
|
||||
"description": "Verbose configure output",
|
||||
"autoDetect": false,
|
||||
"output": [ "verbose" ],
|
||||
"priority": -4
|
||||
},
|
||||
|
||||
"shared": {
|
||||
"description": "Building shared libraries",
|
||||
"condition": "!config.ios && !config.integrity",
|
||||
|
@ -397,16 +397,6 @@ defineTest(qtConfOutput_architecture) {
|
||||
export(QT_ARCH)
|
||||
}
|
||||
|
||||
defineTest(qtConfOutput_verbose) {
|
||||
!$${2}: return()
|
||||
|
||||
qtConfOutputVar(assign, "privatePro", "QMAKE_CONFIG_VERBOSE", true)
|
||||
|
||||
# export this here, so we can get verbose logging
|
||||
QMAKE_CONFIG_VERBOSE = true
|
||||
export(QMAKE_CONFIG_VERBOSE)
|
||||
}
|
||||
|
||||
defineTest(qtConfOutput_styles) {
|
||||
!$${2}: return()
|
||||
|
||||
|
@ -173,6 +173,13 @@ defineTest(qtConfParseCommandLine) {
|
||||
c = $$qtConfGetNextCommandlineArg()
|
||||
isEmpty(c): break()
|
||||
|
||||
# handle options to turn on verbose logging
|
||||
contains(c, "^-v")|contains(c, "^--?verbose") {
|
||||
QMAKE_CONFIG_VERBOSE = true
|
||||
export(QMAKE_CONFIG_VERBOSE)
|
||||
next()
|
||||
}
|
||||
|
||||
# parse out opt and val
|
||||
contains(c, "^--?enable-(.*)") {
|
||||
opt = $$replace(c, "^--?enable-(.*)", "\\1")
|
||||
|
Loading…
Reference in New Issue
Block a user