compiler constraints: deduplicate the list of compilers before encoding one_of_iff rules

This fixes 8 bugs in test/concretize.py
This commit is contained in:
Massimiliano Culpo 2020-10-26 20:17:06 +01:00 committed by Todd Gamblin
parent e56f90c3ef
commit aaa75b831f

View file

@ -1095,6 +1095,7 @@ def define_version_constraints(self):
def define_compiler_version_constraints(self):
compiler_list = spack.compilers.all_compiler_specs()
compiler_list = list(sorted(set(compiler_list)))
for pkg_name, cspec in self.compiler_version_constraints:
possible_compiler_versions = [