compiler list is sorted in descending order, in order to get most up to date version we check from the beginning of the list
This commit is contained in:
parent
175a042fd3
commit
c3767d593d
@ -302,10 +302,10 @@ def _proper_compiler_style(cspec, architecture):
|
||||
raise UnavailableCompilerVersionError(other_compiler)
|
||||
|
||||
# copy concrete version into other_compiler
|
||||
index = len(matches)-1
|
||||
index = 0
|
||||
while not _proper_compiler_style(matches[index], spec.architecture):
|
||||
index -= 1
|
||||
if index == 0:
|
||||
index += 1
|
||||
if index == len(matches) - 1:
|
||||
raise NoValidVersionError(spec)
|
||||
spec.compiler = matches[index].copy()
|
||||
assert(spec.compiler.concrete)
|
||||
|
Loading…
Reference in New Issue
Block a user