Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20567 from mppf/dynamic-link-clang-osx
Link LLVM and clang dynamically on Mac OS X This PR adjusts the chplenv scripts so that `chpl` builds on Mac OS X with system LLVM will link LLVM and Clang dynamically. That makes Mac OS X less of an exception in this regard. We were originally statically linking on Mac OS X with system LLVM due to problems with upstream LLVM and Homebrew in building a dynamic library that works with `llvm-config` (in particular, there were errors about a versioned file, like `libLLVM-11.dylib`, missing). See [this LLVM bug report](llvm/llvm-project#39599). However this should be fixed in Homebrew llvm@12 and newer. Note that we are currently still statically linking for CHPL_LLVM=bundled. Future Work: * I observed a problem CHPL_LLVM=none and llvm@11 on Monterey, but this problem exists also on 'main', and this PR does not make it worse. Reviewed by @ronawho - thanks! ### Testing CHPL_LLVM=system `make check` with OS or Homebrew LLVM versions * note: Homebrew docs say "10.15 or higher is recommended while 10.11-10.14 are supported on a best-effort basis". So, I only tested 10.15 and newer here. #### Mac OS X 10.15 "Catalina" - [x] llvm@11 #### Mac OS X 11 "Big Sur" - [x] llvm@11 - [x] llvm@12 - [x] llvm@13 - [x] llvm (14) #### Mac OS X 12 "Monterey" - [x] llvm@11 - [x] llvm@12 - [x] llvm@13 - [x] llvm (14)
- Loading branch information