<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Unless I’m mistaken, back under the autoconf system dylibs were shipped versioned (libLLVM-{VERSION}.dylib). Indeed this is what llvm-config looks for.<div class=""><br class=""></div><div class="">On the move to CMake however, this is no longer happens on macOS: <a href="https://github.com/llvm/llvm-project/blob/ab411801b82783eb7f652701ccfce81b16cf1811/llvm/cmake/modules/AddLLVM.cmake#L562" class="">https://github.com/llvm/llvm-project/blob/ab411801b82783eb7f652701ccfce81b16cf1811/llvm/cmake/modules/AddLLVM.cmake#L562</a></div><div class=""><br class=""></div><div class="">However, llvm-config still explicitly looks for versioned dylibs: <a href="https://github.com/llvm/llvm-project/blob/bec37c3fc766a7b97f8c52c181c325fd47b75259/llvm/tools/llvm-config/llvm-config.cpp#L378" class="">https://github.com/llvm/llvm-project/blob/bec37c3fc766a7b97f8c52c181c325fd47b75259/llvm/tools/llvm-config/llvm-config.cpp#L378</a></div><div class=""><br class=""></div><div class="">So my question is: which one is correct? Unless I’ve missed something, llvm-config doesn’t function properly on macOS under LLVM_BUILD_LLVM_DYLIB and hasn’t done so for a few years now. This has raised a few bug reports, most recently in Homebrew.</div><div class=""><br class=""></div><div class=""><div class="">For reference, this issue has been mentioned a couple times:</div><div class="">- <a href="https://bugs.llvm.org/show_bug.cgi?id=40252" class="">https://bugs.llvm.org/show_bug.cgi?id=40252</a></div><div class="">- as a (late) comment to <a href="https://reviews.llvm.org/D13841" class="">https://reviews.llvm.org/D13841</a></div></div><div class=""><br class=""></div><div class="">Any thoughts?</div><div class=""><br class=""></div><div class="">Bo</div></body></html>