llvm-config being a binary breaks cross compilation of dependent packages because the host architecture's binary gives us information needed to build for the host while the target architecture's binary cannot be executed by the build system. This is an upstream bug, but we really could use a patch either switching us to pkgconfig or making llvm-config a script.
Given the current state of affairs, upstream developers seem to be more in favor of replacing llvm-config use with CMake modules.
Is this fixed in trunk? https://reviews.llvm.org/D51714
(In reply to tt_1 from comment #2) > Is this fixed in trunk? > > https://reviews.llvm.org/D51714 No, sadly. Added some relevant See Alsos. https://github.com/llvm/llvm-project/issues/58984 is the latest.