[Chapel Merge] Remove error when building LLVM without PrgEnv-gnu

Branch: refs/heads/master
Revision: 755ddc8
Author: bradcray
Log Message:

Merge pull request #17904 from bradcray/remove-prgenv-gnu-error-for-llvm

Remove error when building LLVM without PrgEnv-gnu loaded on XC

[reviewed by @mppf]

This PR removes an error that we generate if PrgEnv-gnu is loaded when
building the Chapel compiler with CHPL_LLVM!=none.

Michael added the error defensively while we were locking down LLVM
test failures and configurations because it represented a case that we
didn't test against nightly and that was causing some problems.
However, we believe that unifying the llvm setting with
CHPL_TARGET_COMPILER probably resolved those issues (and a quick test
on my part seems to confirm that). Meanwhile the presence of the
error caused some churn for users who had configurations in which they
were trying to build with CHPL_LLVM=system and
CHPL_TARGET_COMPILER=PrgEnv-intel.

While we were able to advise those users about what they probably
wanted to do for that test configuration (set CHPL_LLVM=none so they
could focus on the intel build of the runtime), it also raised the
question "Do we really care what PrgEnv is loaded on an XC when doing
an LLVM-enabled build?" Specifically, 'gcc' will be used as the host
compiler and 'clang' will be used as the target compiler, so the
choice of PrgEnv-* module shouldn't really be held against the user
since their choice won't be used in any way (we do swap in PrgEnv-gnu
in order to query some paths and such, but that doesn't really care which
PrgEnv was loaded to begin with. And since we don't typically prevent choices
in the CHPL_* configuration that we don't test against until we're
aware of a problem with them, it makes sense to relax this defensive
error until such a time.

Modified Files:
M third-party/llvm/Makefile

Compare: https://github.com/chapel-lang/chapel/compare/c33ac45d2a7b...755ddc816d62