From f7fcc68b4c4c9add7e773f2646c1caad8e7d155c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibaut=20VAR=C3=88NE?= Date: Fri, 28 Oct 2022 11:05:21 +0200 Subject: [PATCH] phase1: call host ccache in stats MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We do not use the staging_dir ccache on buildbots (config seed contains CONFIG_CCACHE=n), only the host tool if present. Also only execute this step if 'ccache_command' is set. Signed-off-by: Thibaut VARÈNE --- phase1/master.cfg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phase1/master.cfg b/phase1/master.cfg index c3e06e0..15112ce 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -1257,13 +1257,12 @@ for target in targets: name = "ccachestat", description = "Reporting ccache stats", command=["ccache", "-s"], - env = MakeEnv(overrides={ 'PATH': ["${PATH}", "./staging_dir/host/bin"] }), logEnviron = False, want_stderr = False, haltOnFailure = False, flunkOnFailure = False, warnOnFailure = False, - hideStepIf = lambda r, s: r==results.FAILURE, + doStepIf = util.Transform(bool, Property("ccache_command")), )) for brname in branchNames: -- 2.30.2