summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-06-02 14:08:32 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-09-05 10:47:35 +0000
commitd64940891dffcb951f4b76426490cbc94fb4aba7 (patch)
tree2d4a61f5455bce51a2fa4eb4e190961db6e2381c /configure.json
parent0adc14d8dbdd9e28ccb72c49d865009dd8df1b1c (diff)
Add qmake feature and configure option to use ccache
Enabled via configure --ccache, or CONFIG += ccache in 3rd party projects. Ensures that we use the right sloppiness and other ccache options during compilation. Task-number: QTBUG-31034 Change-Id: I696b3d3f0398873a29b93d1bc2b4d4e06ef23dc9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'configure.json')
-rw-r--r--configure.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.json b/configure.json
index 6221c9803a..a91456aaf3 100644
--- a/configure.json
+++ b/configure.json
@@ -61,6 +61,7 @@
"avx2": "boolean",
"avx512": { "type": "boolean", "name": "avx512f" },
"c++std": "cxxstd",
+ "ccache": { "type": "boolean", "name": "ccache" },
"commercial": "void",
"compile-examples": { "type": "boolean", "name": "compile_examples" },
"confirm-license": "void",
@@ -620,6 +621,11 @@
"label": "IncrediBuild",
"type": "files",
"files": [ "BuildConsole.exe", "xgConsole.exe" ]
+ },
+ "ccache": {
+ "label": "ccache",
+ "type": "files",
+ "files": [ "ccache" ]
}
},
@@ -1206,6 +1212,12 @@
"condition": "tests.incredibuild_xge",
"output": [ "publicConfig" ]
},
+ "ccache": {
+ "label": "Using ccache",
+ "autoDetect": false,
+ "condition": "config.unix && tests.ccache",
+ "output": [ "privateConfig" ]
+ },
"msvc_mp": {
"label": "Use multiple processors when compiling with MSVC",
"emitIf": "config.msvc",
@@ -1313,6 +1325,11 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5
"type": "firstAvailableFeature",
"args": "c++1z c++14 c++11"
},
+ {
+ "type": "feature",
+ "args": "ccache",
+ "condition": "config.unix"
+ },
"use_gold_linker",
{
"type": "feature",