Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying cachedir from cmdline #3618

Open
mwichmann opened this issue Apr 19, 2020 · 2 comments
Open

Allow specifying cachedir from cmdline #3618

mwichmann opened this issue Apr 19, 2020 · 2 comments
Labels
args_and_options options processing, arguments, get/setoption and their relationshiop cachedir enhancement

Comments

@mwichmann
Copy link
Collaborator

After a brief mention on Discord (sadly can't link to those)

currently can only enable derived-file caching with a call to CacheDir(path) in an sconscript. It seems like a command-line option to enable caching globally, and set the file - in other words, equivalent to calling the global CacheDir (but not to calling env.CacheDir), would be useful. This would make the feature more equivalent to Repository / --repository=path

@mwichmann
Copy link
Collaborator Author

While on the subject of the cachedir, should there be an option to prune the cache (flush old entries)?

@acmorrow
Copy link
Contributor

@mwichmann - Yes, pruning functionality for the cache is definitely needed. Otherwise you inevitably fill your storage with dead cached objects.

@mwichmann mwichmann added the args_and_options options processing, arguments, get/setoption and their relationshiop label Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
args_and_options options processing, arguments, get/setoption and their relationshiop cachedir enhancement
Projects
None yet
Development

No branches or pull requests

2 participants