[Chapel Merge] Automatically rebuild the compiler when the LLVM v

Branch: refs/heads/main
Revision: 386292e
Author: daviditen
Link: Automatically rebuild the compiler when the LLVM version changes by daviditen · Pull Request #19861 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19861 from daviditen/rebuild-when-new-llvm

Automatically rebuild the compiler when the LLVM version changes

[reviewed by @ronawho]

When the LLVM version changes a rebuild of the compiler is required. Update
build scripts to do the rebuild.

Tested that a rebuild happens when switching from system 14 -> system 13 ->
system 12 -> bundled -> none -> system 14.

This is the change suggested in Cray/chapel-private#3196.

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

Modified Files:
M util/chplenv/chpl_llvm.py

M util/chplenv/printchplenv.py

Compare: https://github.com/chapel-lang/chapel/compare/be3c52f0c0e5...386292edf966