[Chapel Merge] Avoid adding clang resource dir args to the link c

Branch: refs/heads/master
Revision: 02405c5
Author: daviditen
Log Message:

Merge pull request #17827 from daviditen/mpicc-no-clang-opts

Avoid adding clang resource dir args to the link command when not using clang

[reviewed by @mppf]

The MPI testing wants to use mpicc to link, but was unconditionally passing the
clang resource dir arguments to it. Only use that option when actually using
clang.

This should fix the unrecognized option --resource-dir error we saw
in slurm-gasnet-mpi testing with CHPL_LLVM=system.

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

Modified Files:
M compiler/llvm/clangUtil.cpp

Compare: https://github.com/chapel-lang/chapel/compare/f82ccda91871...02405c513e36