[Chapel Merge] Filter out `-g` from gathered args from gasnet

Branch: refs/heads/main
Revision: 46e5917
Author: mppf
Link: https://github.com/chapel-lang/chapel/pull/19186
Log Message:

Merge pull request #19186 from mppf/for-issue-19185

Filter out -g from gathered args from gasnet

Resolves #19185

The gasnet .pc file we parse includes -g if CHPL_COMM_DEBUG is set, but
that causes LLVM verification failures. Filter out that argument.

Reviewed by @ronawho - thanks!