Versioned dylibs and llvm-config

Unless I’m mistaken, back under the autoconf system dylibs were shipped versioned (libLLVM-{VERSION}.dylib). Indeed this is what llvm-config looks for.

On the move to CMake however, this is no longer happens on macOS:

However, llvm-config still explicitly looks for versioned dylibs:

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.

For reference, this issue has been mentioned a couple times:

Any thoughts?