summaryrefslogtreecommitdiffstats
path: root/coin/instructions
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-11-02 12:32:49 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-17 12:48:47 +0000
commitd3ced595bcc4e47cf52d1a76ba591e8878a086c6 (patch)
tree613b32aaa495d9bbf26e05527c8d225283a576b8 /coin/instructions
parentdb1dcc86d0f53b9ccef98d2c65f3eca1785ab7d1 (diff)
coin: Add Sccache feature
Allows us to remove redundant information in the platform configs. Change-Id: Id0c09ce6f22f3bd52ef426c14a1b2806559b2321 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 9f559699cc5dbba9ef8e6da06d2ed48a8b6729a6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'coin/instructions')
-rw-r--r--coin/instructions/prepare_building_env.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml
index 0e69bdf3e6..2a8d0c5552 100644
--- a/coin/instructions/prepare_building_env.yaml
+++ b/coin/instructions/prepare_building_env.yaml
@@ -350,3 +350,26 @@ instructions:
condition: property
property: features
contains_value: WarningsAreErrors
+
+ # Sccache
+ - type: Group
+ instructions:
+ - type: AppendToEnvironmentVariable
+ variableName: CONFIGURE_ARGS
+ variableValue: " -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
+ - type: AppendToEnvironmentVariable
+ variableName: NON_QTBASE_CONFIGURE_ARGS
+ variableValue: " -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
+ - type: AppendToEnvironmentVariable
+ variableName: TEST_CONFIGURE_ARGS
+ variableValue: " -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
+ - type: AppendToEnvironmentVariable
+ variableName: TARGET_CONFIGURE_ARGS
+ variableValue: " -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
+ - type: AppendToEnvironmentVariable
+ variableName: NON_QTBASE_TARGET_CONFIGURE_ARGS
+ variableValue: " -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
+ enable_if:
+ condition: property
+ property: features
+ contains_value: Sccache