From 939eedcb37487728af068d9aad201034da2c21b1 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Thu, 31 May 2018 19:28:38 +0200 Subject: improve Advanced Compiler Configuration part of tutorial (#8325) --- lib/spack/docs/tutorial_configuration.rst | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-70-g09d2