summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2018-05-31 19:28:38 +0200
committerscheibelp <scheibel1@llnl.gov>2018-05-31 10:28:38 -0700
commit939eedcb37487728af068d9aad201034da2c21b1 (patch)
treef0f8ec5bf4f6534fc4806004e9d1097f41d81135 /lib
parent4e15d6f41b63a21c827f71867db29acd7ccb9201 (diff)
downloadspack-939eedcb37487728af068d9aad201034da2c21b1.tar.gz
spack-939eedcb37487728af068d9aad201034da2c21b1.tar.bz2
spack-939eedcb37487728af068d9aad201034da2c21b1.tar.xz
spack-939eedcb37487728af068d9aad201034da2c21b1.zip
improve Advanced Compiler Configuration part of tutorial (#8325)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/tutorial_configuration.rst23
1 files changed, 21 insertions, 2 deletions
diff --git a/lib/spack/docs/tutorial_configuration.rst b/lib/spack/docs/tutorial_configuration.rst
index f9221be9b4..f185b8b722 100644
--- a/lib/spack/docs/tutorial_configuration.rst
+++ b/lib/spack/docs/tutorial_configuration.rst
@@ -298,13 +298,32 @@ dependencies on the resulting executables that are not rpath'ed into
the executable automatically, the ``extra_rpath`` field of the compiler
configuration tells Spack which dependencies to rpath into every
executable created by that compiler. The executables will then be able
-to find the link dependencies imposed by the compiler.
+to find the link dependencies imposed by the compiler. As an example,
+this field can be set by
+
+.. code-block:: yaml
+
+ - compiler:
+ ...
+ extra_rpaths:
+ - /apps/intel/ComposerXE2017/compilers_and_libraries_2017.5.239/linux/compiler/lib/intel64_lin
+ ...
+
The ``environment`` field of the compiler configuration is used for
compilers that require environment variables to be set during build
time. For example, if your Intel compiler suite requires the
``INTEL_LICENSE_FILE`` environment variable to point to the proper
-license server, you can set this in ``compilers.yaml``.
+license server, you can set this in ``compilers.yaml`` as follows:
+
+.. code-block:: yaml
+
+ - compiler:
+ environment:
+ set:
+ INTEL_LICENSE_FILE: 1713@license4
+ ...
+
-------------------------------
Configuring Package Preferences