changed architecture.target to architecture.platform_os, so that compiler_for_spec uses operating system strategy

This commit is contained in:
Mario Melara 2016-02-25 18:49:27 -08:00
parent eb96f38298
commit ccd4a79b39

View file

@ -594,7 +594,7 @@ def compiler(self):
if not self.spec.concrete: if not self.spec.concrete:
raise ValueError("Can only get a compiler for a concrete package.") raise ValueError("Can only get a compiler for a concrete package.")
return spack.compilers.compiler_for_spec(self.spec.compiler, return spack.compilers.compiler_for_spec(self.spec.compiler,
self.spec.architecture.target) self.spec.architecture.platform_os)
def url_version(self, version): def url_version(self, version):