Changed compiler finding strategy to come from operating system instead of target
This commit is contained in:
parent
5989e3f65d
commit
ac55ce989d
1 changed files with 2 additions and 2 deletions
|
@ -334,9 +334,9 @@ def concretize_compiler(self, spec):
|
||||||
# Should think whether this can be more efficient
|
# Should think whether this can be more efficient
|
||||||
def _proper_compiler_style(cspec, architecture):
|
def _proper_compiler_style(cspec, architecture):
|
||||||
compilers = spack.compilers.compilers_for_spec(cspec)
|
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)
|
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)
|
filter(lambda c: c.modules, compilers)
|
||||||
return compilers
|
return compilers
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue