summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/nag.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/spack/spack/compilers/nag.py b/lib/spack/spack/compilers/nag.py
index 2dfc97af73..f1cc6be0d5 100644
--- a/lib/spack/spack/compilers/nag.py
+++ b/lib/spack/spack/compilers/nag.py
@@ -1,3 +1,5 @@
+from spack.compiler import *
+
class Nag(Compiler):
# Subclasses use possible names of C compiler
cc_names = []
@@ -11,6 +13,13 @@ class Nag(Compiler):
# Subclasses use possible names of Fortran 90 compiler
fc_names = ['nagfor']
+ # Named wrapper links within spack.build_env_path
+ link_paths = { # Use default wrappers for C and C++, in case provided in compilers.yaml
+ 'cc' : 'cc',
+ 'cxx' : 'cxx',
+ 'f77' : 'nag/nagfor',
+ 'fc' : 'nag/nagfor' }
+
@classmethod
def default_version(self, comp):
"""The '-V' option works for nag compilers.