fix handling of -optimized-tools

this option makes sense only when the default build is debug (regardless
of whether the release build is also enabled), as it overrides the
default.

Change-Id: I29f87430242a7d8239f13f0b33f6eebe098d9cf7
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Oswald Buddenhagen 2016-11-02 17:37:31 +01:00
parent c804033f36
commit dfbfc4915b

View File

@ -558,6 +558,7 @@
},
"release_tools": {
"label": "Compile tools in release mode",
"autoDetect": "!features.debug",
"output": [ "privateFeature", "publicQtConfig" ]
},
"simulator_and_device": {
@ -1073,7 +1074,7 @@ or compile needed modules into the library."
},
{
"type": "note",
"condition": "features.release_tools && (!features.debug || features.debug_and_release)",
"condition": "features.release_tools && !features.debug",
"message": "-optimized-tools is not useful in -release mode."
},
{