[Chapel Merge] When looking for supported LLVM versions stop afte

Branch: refs/heads/main
Revision: aff780a
Author: daviditen
Link: When looking for supported LLVM versions stop after one is found by daviditen · Pull Request #19278 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19278 from daviditen/llvm-version-order

When looking for supported LLVM versions stop after one is found

[reviewed by @aconsroe-hpe]

The LLVM versions are listed in chpl_llvm.py/llvm_versions() in preferred
order. Stop searching for other versions after the first is found so we get
the most preferred version instead of the least.

Signed-off-by: David Iten daviditen@users.noreply.github.com

Modified Files:
M util/chplenv/chpl_llvm.py

Compare: https://github.com/chapel-lang/chapel/compare/d9079b025ba6...aff780ac4cda