diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-02 12:32:49 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-04 18:01:39 +0100 |
commit | 9f559699cc5dbba9ef8e6da06d2ed48a8b6729a6 (patch) | |
tree | 5ba1b5330b6adf5274f3e582d9d86bf55f3ac40c | |
parent | b4c7d6b8d4b33bb1f496b288f7d199037326cd18 (diff) | |
download | qtbase-9f559699cc5dbba9ef8e6da06d2ed48a8b6729a6.tar.gz |
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>
-rw-r--r-- | coin/instructions/prepare_building_env.yaml | 23 |
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 |