[Chapel Merge] Fix target compiler validation for the gpu locale

Branch: refs/heads/main
Revision: 934adfb
Author: e-kayrakli
Link: Fix target compiler validation for the gpu locale model by e-kayrakli · Pull Request #19018 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19018 from e-kayrakli/fix-gpu-compiler

Fix target compiler validation for the gpu locale model

The problem was noted here: https://github.com/chapel-lang/chapel/pull/18762/files#r783210154.

The previous behavior required imposed clang to be the host compiler. But that's arbitrary.

This PR just validates that CHPL_TARGET_COMPILER==llvm and that's it. It gives an error if that's not the case.

[Reviewed by @mppf]

Modified Files:
M util/chplenv/chpl_compiler.py

Compare: https://github.com/chapel-lang/chapel/compare/3764a823f47a...934adfbf8c1f