This commit is contained in:
Gregory Becker 2016-03-23 09:54:57 -07:00
parent 7c729d4c3c
commit 688eca23ff

View file

@ -110,7 +110,7 @@
import spack.architecture import spack.architecture
import spack.parse import spack.parse
import spack.error import spack.error
import spack.compilers as compilers #import spack.compilers as compilers
from spack.version import * from spack.version import *
from spack.util.naming import mod_to_class from spack.util.naming import mod_to_class
@ -1174,9 +1174,9 @@ def validate_names(self):
spack.repo.get(spec.fullname) spack.repo.get(spec.fullname)
# validate compiler in addition to the package name. # validate compiler in addition to the package name.
if spec.compiler: # if spec.compiler:
if not compilers.supported(spec.compiler): # if not compilers.supported(spec.compiler):
raise UnsupportedCompilerError(spec.compiler.name) # raise UnsupportedCompilerError(spec.compiler.name)
# Ensure that variants all exist. # Ensure that variants all exist.
for vname, variant in spec.variants.items(): for vname, variant in spec.variants.items():