[Chapel Merge] Minor build/printchplenv adjustments to support Ho

Branch: refs/heads/main
Revision: 9606d29
Author: mppf
Link: Minor build/printchplenv adjustments to support Homebrew by mppf · Pull Request #19504 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19504 from mppf/linuxbrew-fixes

Minor build/printchplenv adjustments to support Homebrew

This PR fixes two problems I ran into when trying to get a linuxbrew
build of Chapel 1.26 working and one problem with trying the Homebrew (on
Mac OS X) formula

  • don't make -j in gen_release to build the docs
    • this originated in #2709, potentially inadvertently
    • unbounded make -j can run out of memory
  • allow CHPL_LLVM_GCC_PREFIX to be set in chplconfig and allow it to
    be set to none
    • so that the linuxbrew formula can leave out the --gcc-toolchain
      flag since it should not be necessary there
  • Add CHPL_HOST_USE_SYSTEM_LIBCXX environment variable to enable the
    workaround from PR #19445. This environment variable is necessary
    (instead of just detecting the existence of brew) because otherwise
    the workaround is not applied when building the chapel formula
    itself.

Reviewed by @e-kayrakli, @tzinsky and @ronawho - thanks!