From 21d561106f2887ec23e2cfa010189c02c4a62771 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 14 Aug 2025 14:50:43 +0200 Subject: [PATCH] coin: Tell qmake to use sccache if the platform feature is enabled Pick-to: 6.8 6.9 6.10 Task-number: QTBUG-139139 Change-Id: I861319b9a29ff39c467c81d49c5074907294d4dc Reviewed-by: Alexey Edelev Reviewed-by: Joerg Bornemann --- .../build_qmake_examples_inner_instructions.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/coin/instructions/qmake_examples/build_qmake_examples_inner_instructions.yaml b/coin/instructions/qmake_examples/build_qmake_examples_inner_instructions.yaml index 9bb765642db..3595176de1b 100644 --- a/coin/instructions/qmake_examples/build_qmake_examples_inner_instructions.yaml +++ b/coin/instructions/qmake_examples/build_qmake_examples_inner_instructions.yaml @@ -59,9 +59,23 @@ instructions: userMessageOnFailure: > Failed to run cmake -P ensure_pro_file.cmake + - type: EnvironmentVariable + variableName: QMAKE_ARGS + variableValue: "" + - type: Group + instructions: + - type: AppendToEnvironmentVariable + variableName: QMAKE_ARGS + variableValue: "CONFIG+=ccache QMAKE_CACHE_LAUNCHER_PREFIX=sccache" + enable_if: + condition: property + property: features + contains_value: Sccache + # Run qmake to configure the examples. The env prefix is important for qemu. - type: ExecuteCommand - command: "{{.Env.CALL_MAKE_ENV_PREFIX}} {{.Env.COIN_QMAKE_LOCATION}} {{.Env.COIN_EXAMPLES_SOURCE_LOCATION}}" + command: "{{.Env.CALL_MAKE_ENV_PREFIX}} {{.Env.COIN_QMAKE_LOCATION}} {{.Env.COIN_EXAMPLES_SOURCE_LOCATION}} {{.Env.QMAKE_ARGS}}" + executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution maxTimeInSeconds: 6000 maxTimeBetweenOutput: 1200 userMessageOnFailure: >