Changed compiler finding strategy to come from operating system instead of target

This commit is contained in:
Mario Melara 2016-02-25 18:47:41 -08:00
parent 5989e3f65d
commit ac55ce989d

View file

@ -334,9 +334,9 @@ def concretize_compiler(self, spec):
# Should think whether this can be more efficient
def _proper_compiler_style(cspec, architecture):
compilers = spack.compilers.compilers_for_spec(cspec)
if architecture.target.compiler_strategy == 'PATH':
if architecture.platform_os.compiler_strategy == 'PATH':
filter(lambda c: not c.modules, compilers)
if architecture.target.compiler_strategy == 'MODULES':
if architecture.platform_os.compiler_strategy == 'MODULES':
filter(lambda c: c.modules, compilers)
return compilers