This commit is contained in:
Andreas Rumpf 2018-08-10 12:09:51 +02:00
commit ba6601b149
2 changed files with 2 additions and 2 deletions

View file

@ -482,7 +482,7 @@ include packagehandling
proc getOsCacheDir(): string = proc getOsCacheDir(): string =
when defined(posix): when defined(posix):
result = string getEnv("XDG_CACHE_HOME", getHomeDir() / ".cache") result = getEnv("XDG_CACHE_HOME", getHomeDir() / ".cache") / "nim"
else: else:
result = getHomeDir() / genSubDir result = getHomeDir() / genSubDir

View file

@ -159,7 +159,7 @@ Generated C code directory
The generated files that Nim produces all go into a subdirectory called The generated files that Nim produces all go into a subdirectory called
``nimcache``. Its full path is ``nimcache``. Its full path is
- ``$XDG_CACHE_HOME/$projectname(_r|_d)`` or ``~/.cache/$projectname(_r|_d)`` - ``$XDG_CACHE_HOME/nim/$projectname(_r|_d)`` or ``~/.cache/nim/$projectname(_r|_d)``
on Posix on Posix
- ``$HOME/nimcache/$projectname(_r|_d)`` on Windows. - ``$HOME/nimcache/$projectname(_r|_d)`` on Windows.