aboutsummaryrefslogtreecommitdiffstats
path: root/coin_build_instructions.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-11-12 19:14:51 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-11-15 11:53:47 +0100
commit037e50c063c1a63d0d09482b8e166ccec2bd13c0 (patch)
tree19835ab6ce636e187166a46550ebff41decf3f60 /coin_build_instructions.py
parent9594789fcc58cb250900c935e1adb4b2ce9ed8b6 (diff)
setup: coin: Use sccache when building if the platform config sets it
Set the CI_USE_SCCACHE env var if the sccache feature is enabled for the platform config. Pipe that through coin_build_instructions.py to setup.py. Add the relevant CMake cache vars so sccache is used. Pick-to: 6.2 Change-Id: I02d7ff0646791a5f0d2f1dd5c4a119ee016a9896 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'coin_build_instructions.py')
-rw-r--r--coin_build_instructions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/coin_build_instructions.py b/coin_build_instructions.py
index f08926763..c879ffde5 100644
--- a/coin_build_instructions.py
+++ b/coin_build_instructions.py
@@ -61,6 +61,7 @@ CI_HOST_OS_VER = option_value("osVer")
CI_ENV_INSTALL_DIR = option_value("instdir")
CI_ENV_AGENT_DIR = option_value("agentdir")
CI_COMPILER = option_value("compiler")
+CI_USE_SCCACHE = option_value("compiler-launcher")
CI_INTEGRATION_ID = option_value("coinIntegrationId") or str(calendar.timegm(datetime.datetime.now().timetuple()))
CI_FEATURES = []
_ci_features = option_value("features")
@@ -147,6 +148,10 @@ def call_setup(python_ver, phase):
cmd += ["--build-tests",
"--parallel=4",
"--verbose-build"]
+
+ if CI_USE_SCCACHE:
+ cmd += [f"--compiler-launcher={CI_USE_SCCACHE}"]
+
if python_ver == "3":
cmd += ["--limited-api=yes"]
if is_snapshot_build():