Open dabrahams opened 6 months ago
I think part of the deal is that homebrew installs its libraries in a nonstandard location on Apple Silicon (/opt/homebrew/lib)—but not on Intel. It's not in the default search path for libraries, so anything that is built without brew specifically in mind will fail to find dynamic libs installed by brew. It might not be the most principled approach, but I'm thinking of taking suggestion #1, if there's a way to get CMAKE to inject /opt/homebrew/lib at the end of all RUNPATHs it creates.
https://cmake.org/cmake/help/latest/prop_tgt/INSTALL_RPATH.html. When that's done we can undo https://github.com/hylo-lang/Swifty-LLVM/commit/2ac3ac714af
Workaround for me is:
but you have to embed it in the script invoking llvm-config because of this security feature.