I have a wrapper for llvm-config in ~/local/bin/ to workaround for a bug in original llvm-config, but rustbuild assumes there’s FileCheck in the same directory as llvm-config, making rustbuild fail.
It should instead get the LLVM bindir from llvm-config itself.
$ which llvm-config
/home/nagisa/local/bin/llvm-config
$ llvm-config --bindir
/usr/bin