[Chapel Merge] Avoid passing -DCHPL_OPTIMIZE, CHPL_DEBUG, NDEBUG

Branch: refs/heads/master
Revision: 7a9fc65
Author: daviditen
Log Message:

Merge pull request #17155 from daviditen/chpl-optimize-debug-defines

Avoid passing -DCHPL_OPTIMIZE, CHPL_DEBUG, NDEBUG to backend compiler unless compiler flags say to

[reviewed by @gbtitus]

The defines for those arguments were being taken from runtime build information
when invoking the backend compiler. It should instead be based on what chpl
flags were used. Remove these from the args vector and base it on --optimize
--debug and similar chpl options instead.

Modified Files:
M compiler/llvm/clangUtil.cpp

Compare: Comparing dec284509cad...7a9fc659d0de · chapel-lang/chapel · GitHub