summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/compilers/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/compilers/__init__.py b/lib/spack/spack/compilers/__init__.py
index 0f0fb94c1e..36291a8f63 100644
--- a/lib/spack/spack/compilers/__init__.py
+++ b/lib/spack/spack/compilers/__init__.py
@@ -681,8 +681,8 @@ def make_compiler_list(detected_versions):
sort_fn = lambda variation: (
'cc' not in by_compiler_id[variation], # None last
'cxx' not in by_compiler_id[variation], # None last
- variation.prefix,
- variation.suffix,
+ getattr(variation, 'prefix', None),
+ getattr(variation, 'suffix', None),
)
compilers = []