diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-12 14:16:16 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-12 18:01:09 +0200 |
commit | 2a0677ec1d3f9e849eb61ec99c5682cf0b87f4b9 (patch) | |
tree | b898be651e8f95d4a2f6816eda754a209c34dc63 | |
parent | ddcd947cd36ee282bf8ba4581fcf622c1b589df4 (diff) |
If Qt is configured with ccache feature pass that along to GN
This will set the cc_wrapper to ccache when running GN, which in turn
will prefix all compiler calls with ccache. This allows a nice way of
using ccache and icecream on macOS.
Change-Id: I19ca1261aa8ebc4aaf7f8c34b3cb363baa29de01
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | src/core/config/common.pri | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/config/common.pri b/src/core/config/common.pri index c8c3d55f6..42cf445df 100644 --- a/src/core/config/common.pri +++ b/src/core/config/common.pri @@ -114,3 +114,7 @@ qtConfig(webengine-kerberos) { } !msvc: gn_args += enable_iterator_debugging=false + +ccache { + gn_args += cc_wrapper=\"ccache\" +} |