Modify nag.py to match new compiler package structure

This commit is contained in:
Adam J. Stewart 2016-01-19 13:28:35 -06:00
parent 0acc90759c
commit 83de658ee4

View File

@ -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.