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

View File

@@ -482,7 +482,7 @@ include packagehandling
proc getOsCacheDir(): string =
when defined(posix):
result = string getEnv("XDG_CACHE_HOME", getHomeDir() / ".cache")
result = getEnv("XDG_CACHE_HOME", getHomeDir() / ".cache") / "nim"
else:
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
``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
- ``$HOME/nimcache/$projectname(_r|_d)`` on Windows.