]> git.proxmox.com Git - llvm-toolchain.git/commitdiff
store the sccache results in /tmp/buildd/source/sccache-stats.json
authorSylvestre Ledru <sylvestre@debian.org>
Wed, 16 Nov 2022 19:51:02 +0000 (20:51 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 16 Nov 2022 19:51:28 +0000 (20:51 +0100)
debian/rules

index 76d1c47d7cc7df84ec2cd4f17152596937b3a931..f55a3caa4597e673bfce3f5b1df1e7579471fe5c 100755 (executable)
@@ -756,8 +756,9 @@ sccache-stats:
 # If we used sccache, shows stats
        if test -f /opt/sccache/sccache; then \
                ls -al /opt/sccache/; \
-               /opt/sccache/sccache --stats-format json --show-stats > /tmp/buildd/sccache-stats.json; \
-               cat /tmp/buildd/sccache-stats.json; \
+               mkdir -p /tmp/buildd/source/; \
+               /opt/sccache/sccache --stats-format json --show-stats > /tmp/buildd/source/sccache-stats.json; \
+               cat /tmp/buildd/source/sccache-stats.json; \
        fi
        touch $@