diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-11-07 11:47:39 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-11-07 15:28:05 +0100 |
commit | d4623d50edac4a6e81f5986a91c2818f5fc4965d (patch) | |
tree | c5e2bb5ed346a99d80d8f52debad62d89530af18 /examples | |
parent | c5487cafabea43b8f1ed3ea5068a7463c15d813a (diff) | |
download | cuirass-d4623d50edac4a6e81f5986a91c2818f5fc4965d.tar cuirass-d4623d50edac4a6e81f5986a91c2818f5fc4965d.tar.gz |
base: Register GC roots for build results.
Fixes <https://bugs.gnu.org/33124>.
* src/cuirass/base.scm (%gc-root-directory, %gc-root-ttl): New variables.
(gc-root-expiration-time, register-gc-root): New procedures.
(handle-build-event)[gc-roots]: New procedure.
Upon 'build-succeeded' events, call 'register-gc-root' and
'maybe-remove-expired-cache-entries'.
* bin/cuirass.in (show-help, %options): Add '--ttl'.
(main): Parameterize %GC-ROOT-TTL. Create %GC-ROOT-DIRECTORY.
* doc/cuirass.texi (Invocation): Document '--ttl'.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions