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

use /etc/ccache.conf in buildroot #3012

Open
nekopsykose opened this issue Sep 27, 2024 · 0 comments
Open

use /etc/ccache.conf in buildroot #3012

nekopsykose opened this issue Sep 27, 2024 · 0 comments

Comments

@nekopsykose
Copy link
Contributor

currently we set CCACHE_ vars in env; this works (and with high priority, see order in https://ccache.dev/manual/latest.html#_configuration), but it's not guaranteed a given build respects the env. for instance, scons drops the entire env (except for instance PATH) when invoking the compiler, and so the actual CCACHE_DIR is lost; the invoked ccache will default to $HOME/.ccache in /tmp and then be deleted right after. (small loss since nothing uses scons, but annoying behaviour, and maybe this happens to more random builds)

it would be a lot neater (fuck env vars) if instead cbuild wrote the config to /etc/ccache.conf in the buildroot, which avoids env related issues and has no downsides i can think of. local ccache configuration still takes precedence, so this doesn't break anything for local user config in the cache_dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant