llvm (all versions): add missing versioned libLLVM symlink; fix Mojave sysroot - #47146
llvm (all versions): add missing versioned libLLVM symlink; fix Mojave sysroot#47146Bo98 wants to merge 4 commits into
Conversation
|
If |
|
That question has been asked before but unanswered. It apparently does work on Linux. The issue was first picked up in a comment of this code review however it was only noticed a few months later. A bug was eventually reported but however did not get a response. It is documented as supposed to still work - though those docs haven't been updated in years and still mention LLVM 2.7. |
|
The relevant cmake file is there: https://github.com/llvm-mirror/llvm/blob/master/tools/llvm-shlib/CMakeLists.txt |
|
There's an unexplained I believe this did not affect their old, and long gone, autoconf system. |
|
I can see if it's third time lucky and reraise the question upstream if you want. |
|
Please do. If we add hack after hack in our formulas, they will only get unmaintainable. And the root issue is never fixed. To some extent, if LLVM ships a compiler with breakage in some corner cases, it's their problem and we don't want to patch every little issue. |
|
I'm gonna close this: it is for LLVM to fix, it's clearly a bug in their build system. |
|
If you want an update: nobody responded to my query on the mailing list. I think I’ve exhausted all options bar submitting a patch to them which I’ll do when the time allows.
|
llvm-configexpectslibLLVM-9.dylib(or the equivalent for LLVM 6-8) in order to properly function. It is however missing and I believe this to be the cause of #47142.Since I was here revision bumping to include this fix, I've also taken the opportunity to fix the default sysroot for Mojave. We didn't get any reported issues about it AFAIK (only for GCC) - but now the behavior matches that of Xcode's LLVM build.