From 9f559699cc5dbba9ef8e6da06d2ed48a8b6729a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 2 Nov 2021 12:32:49 +0100 Subject: [PATCH] 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 --- coin/instructions/prepare_building_env.yaml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml index 0e69bdf3e66..2a8d0c5552d 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