summaryrefslogtreecommitdiff
path: root/lib/spack/docs/config_yaml.rst
diff options
context:
space:
mode:
authorChristoph Junghans <christoph.junghans@gmail.com>2018-07-09 15:06:10 -0600
committerscheibelp <scheibel1@llnl.gov>2018-07-09 14:06:10 -0700
commit8bc3f7d726d18d2c76e5bcc64d4160ae950b2cae (patch)
treef6a0cb0e0c55f11253990d4971e96358eea2ec94 /lib/spack/docs/config_yaml.rst
parent8770957b7ad26f9697663c39b43f493ac8ecd79c (diff)
downloadspack-8bc3f7d726d18d2c76e5bcc64d4160ae950b2cae.tar.gz
spack-8bc3f7d726d18d2c76e5bcc64d4160ae950b2cae.tar.bz2
spack-8bc3f7d726d18d2c76e5bcc64d4160ae950b2cae.tar.xz
spack-8bc3f7d726d18d2c76e5bcc64d4160ae950b2cae.zip
Add ccache support (#3761)
If the user sets "ccache: true" in spack's config.yaml, Spack will use an available ccache executable when compiling c/c++ code. This feature is disabled by default (i.e. "ccache: false") and the documentation is updated with how to enable ccache support
Diffstat (limited to 'lib/spack/docs/config_yaml.rst')
-rw-r--r--lib/spack/docs/config_yaml.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/spack/docs/config_yaml.rst b/lib/spack/docs/config_yaml.rst
index 35bc22d72e..1db5679278 100644
--- a/lib/spack/docs/config_yaml.rst
+++ b/lib/spack/docs/config_yaml.rst
@@ -191,3 +191,22 @@ to 4, for example, commands like ``spack install`` will run ``make -j4``
instead of hogging every core.
To build all software in serial, set ``build_jobs`` to 1.
+
+--------------------
+``ccache``
+--------------------
+
+When set to ``true`` Spack will use ccache to cache compiles. This is
+useful specifically un two cases: (1) Use with ``spack setup``, (2)
+Build the same package with many different variants. The default is
+``false``.
+
+When enabled Spack will look inside your ``PATH`` for a ``ccache``
+executable and stop if it is not found. Some systems come with
+``ccache``, but it can also be installed using ``spack install
+ccache``. ``ccache`` comes with reasonable defaults for cache size
+and location. (See the *Configuration settings* secion of ``man
+ccache`` to learn more about the default settings and how change
+them.) Please note that we currently disable ccache's ``hash_dir``
+feature to avoid an issue with the stage directory (see
+https://github.com/LLNL/spack/pull/3761#issuecomment-294352232 ).