discuss cache and config locations on Windows #1098
Labels
closed: duplicate
Duplicate of another issue
improvement
Improvement that is not a bug fix or new feature
@jrosdahl @cristianadam @Predelnik
Hi guys, I noticed that the default locations for the cache and configs on Windows right now does not seem ideal.
From the output of
ccache -s -v
I have:Cache Location
We should be using
AppData\Local
and notRoaming
for the cache becauseRoaming
data can be copied/moved, and this is potentially many gigs that don't need to be.Local
is available in theLOCALAPPDATA
environment variable, and we can still fallback toAPPDATA
if for some reason it's not available due to Windows version or whatever.Global Config
Instead of
C:/Program Files (x86)/ccache/etc
we could useC:\ProgramData\ccache
asC:\ProgramData
serves the purpose of a global/etc
on modern Windows versions. This location is generally available in theALLUSERSPROFILE
environment variable. I'm not sure here what the fallback should be if any, or if we care about old versions of Windows, the(x86)
suffix is definitely wrong because I am using a 64 bit build.If you agree I can work on a PR to make these adjustments.
The text was updated successfully, but these errors were encountered: