summary refs log tree commit diff stats
path: root/doc/nimc.rst
diff options
context:
space:
mode:
authoralaviss <alaviss@users.noreply.github.com>2018-08-09 15:50:36 +0700
committerAndreas Rumpf <rumpf_a@web.de>2018-08-09 10:50:36 +0200
commita2c5ffba0cd82b5677fa57612f7dcb7af2348f45 (patch)
tree01468c68d3631b2a913026566d40e20c06ddf1f6 /doc/nimc.rst
parent98225ca207e4057c1da7966430d0699c0151e3e7 (diff)
downloadNim-a2c5ffba0cd82b5677fa57612f7dcb7af2348f45.tar.gz
Uses XDG_CACHE_HOME if available (#8585)
* compiler/options: use XDG_CACHE_HOME if set

* doc/nimc: update documentation
Diffstat (limited to 'doc/nimc.rst')
-rw-r--r--doc/nimc.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/nimc.rst b/doc/nimc.rst
index 277c88ec1..fca5b273c 100644
--- a/doc/nimc.rst
+++ b/doc/nimc.rst
@@ -159,7 +159,8 @@ Generated C code directory
 The generated files that Nim produces all go into a subdirectory called
 ``nimcache``. Its full path is
 
-- ``~/.cache/$projectname(_r|_d)`` on Posix
+- ``$XDG_CACHE_HOME/$projectname(_r|_d)`` or ``~/.cache/$projectname(_r|_d)``
+  on Posix
 - ``$HOME/nimcache/$projectname(_r|_d)`` on Windows.
 
 The ``_r`` suffix is used for release builds, ``_d`` is for debug builds.