phase1: call host ccache in stats
authorThibaut VARÈNE <hacks@slashdirt.org>
Fri, 28 Oct 2022 09:05:21 +0000 (11:05 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 15 May 2023 15:36:01 +0000 (17:36 +0200)
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 <hacks@slashdirt.org>
phase1/master.cfg

index c3e06e0b0e9b021d8a56cfa50c2c1a20e84909f6..15112ce921b3884abe6b6a91ae34323a31f24f87 100644 (file)
@@ -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: