Modify nag.py to match new compiler package structure
This commit is contained in:
parent
0acc90759c
commit
83de658ee4
@ -1,3 +1,5 @@
|
|||||||
|
from spack.compiler import *
|
||||||
|
|
||||||
class Nag(Compiler):
|
class Nag(Compiler):
|
||||||
# Subclasses use possible names of C compiler
|
# Subclasses use possible names of C compiler
|
||||||
cc_names = []
|
cc_names = []
|
||||||
@ -11,6 +13,13 @@ class Nag(Compiler):
|
|||||||
# Subclasses use possible names of Fortran 90 compiler
|
# Subclasses use possible names of Fortran 90 compiler
|
||||||
fc_names = ['nagfor']
|
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
|
@classmethod
|
||||||
def default_version(self, comp):
|
def default_version(self, comp):
|
||||||
"""The '-V' option works for nag compilers.
|
"""The '-V' option works for nag compilers.
|
||||||
|
Loading…
Reference in New Issue
Block a user