summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-11-02 12:32:49 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-11-04 18:01:39 +0100
commit9f559699cc5dbba9ef8e6da06d2ed48a8b6729a6 (patch)
tree5ba1b5330b6adf5274f3e582d9d86bf55f3ac40c /coin
parentb4c7d6b8d4b33bb1f496b288f7d199037326cd18 (diff)
coin: Add Sccache feature
Allows us to remove redundant information in the platform configs. Pick-to: 6.2 5.15 Change-Id: Id0c09ce6f22f3bd52ef426c14a1b2806559b2321 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'coin')
-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