summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@users.noreply.github.com>2016-04-26 13:00:54 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-04-26 10:00:54 -0700
commit603467785b5ea00a1dac43e64e1565a6bdc732ef (patch)
treecfcd9dea4b84b9fb5b8fe29f5247ed13060b7ccf
parentf70046e6b713f783288afac3359ccba6bfd8e233 (diff)
downloadspack-603467785b5ea00a1dac43e64e1565a6bdc732ef.tar.gz
spack-603467785b5ea00a1dac43e64e1565a6bdc732ef.tar.bz2
spack-603467785b5ea00a1dac43e64e1565a6bdc732ef.tar.xz
spack-603467785b5ea00a1dac43e64e1565a6bdc732ef.zip
Compiler find docs (#831)
* docs: mention `spack compiler find` * docs: fix some weird wording.
-rw-r--r--lib/spack/docs/basic_usage.rst17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/spack/docs/basic_usage.rst b/lib/spack/docs/basic_usage.rst
index 0e603813e1..29791d98c4 100644
--- a/lib/spack/docs/basic_usage.rst
+++ b/lib/spack/docs/basic_usage.rst
@@ -372,25 +372,32 @@ how this is done is in :ref:`sec-specs`.
``spack compiler add``
~~~~~~~~~~~~~~~~~~~~~~~
+An alias for ``spack compiler find``.
+
+.. _spack-compiler-find:
+
+``spack compiler find``
+~~~~~~~~~~~~~~~~~~~~~~~
+
If you do not see a compiler in this list, but you want to use it with
-Spack, you can simply run ``spack compiler add`` with the path to
+Spack, you can simply run ``spack compiler find`` with the path to
where the compiler is installed. For example::
- $ spack compiler add /usr/local/tools/ic-13.0.079
+ $ spack compiler find /usr/local/tools/ic-13.0.079
==> Added 1 new compiler to /Users/gamblin2/.spack/compilers.yaml
intel@13.0.079
-Or you can run ``spack compiler add`` with no arguments to force
+Or you can run ``spack compiler find`` with no arguments to force
auto-detection. This is useful if you do not know where compilers are
installed, but you know that new compilers have been added to your
``PATH``. For example, using dotkit, you might do this::
$ module load gcc-4.9.0
- $ spack compiler add
+ $ spack compiler find
==> Added 1 new compiler to /Users/gamblin2/.spack/compilers.yaml
gcc@4.9.0
-This loads the environment module for gcc-4.9.0 to get it into the
+This loads the environment module for gcc-4.9.0 to add it to
``PATH``, and then it adds the compiler to Spack.
.. _spack-compiler-info: