summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-01-19 13:28:35 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2016-01-19 13:28:35 -0600
commit83de658ee42e08a27ce7d85d295955f4809c03dc (patch)
treeee7574eea42f46ad205bf48195dee7fd6f44e1da /lib
parent0acc90759cffbc1e397b676239b43ce4c9584eb4 (diff)
downloadspack-83de658ee42e08a27ce7d85d295955f4809c03dc.tar.gz
spack-83de658ee42e08a27ce7d85d295955f4809c03dc.tar.bz2
spack-83de658ee42e08a27ce7d85d295955f4809c03dc.tar.xz
spack-83de658ee42e08a27ce7d85d295955f4809c03dc.zip
Modify nag.py to match new compiler package structure
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.