diff options
author | Gregory Becker <becker33@llnl.gov> | 2016-08-01 17:22:13 -0700 |
---|---|---|
committer | Gregory Becker <becker33@llnl.gov> | 2016-08-01 17:22:13 -0700 |
commit | 679ceabf36bbe87e853141dd86936bc5cda4a337 (patch) | |
tree | bd9b2f55f8f2f0acb15d4bf9cc0fa6c5b8ebf3c9 /lib | |
parent | 31042e8ed10a8464b1a6cbbc165be8ca7e9510bc (diff) | |
download | spack-679ceabf36bbe87e853141dd86936bc5cda4a337.tar.gz spack-679ceabf36bbe87e853141dd86936bc5cda4a337.tar.bz2 spack-679ceabf36bbe87e853141dd86936bc5cda4a337.tar.xz spack-679ceabf36bbe87e853141dd86936bc5cda4a337.zip |
fixed flake8 errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/concretize.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py index 4fafee3a83..eced9917c9 100644 --- a/lib/spack/spack/concretize.py +++ b/lib/spack/spack/concretize.py @@ -336,16 +336,18 @@ class DefaultConcretizer(object): spack.pkgsort.compiler_compare, other_spec.name) matches = sorted(compiler_list, cmp=cmp_compilers) if not matches: + arch = spec.architecture raise UnavailableCompilerVersionError(other_compiler, - spec.architecture.operating_system) + arch.platform_os) # copy concrete version into other_compiler index = 0 while not _proper_compiler_style(matches[index], spec.architecture): index += 1 if index == len(matches) - 1: + arch = spec.architecture raise UnavailableCompilerVersionError(spec.compiler, - spec.architecture.operating_system) + arch.platform_os) spec.compiler = matches[index].copy() assert(spec.compiler.concrete) return True # things changed. |