You need to build the compiler-rt
runtime. You should just need to add -DLLVM_ENABLE_RUNTIMES=compiler-rt
to your CMake configure command line. I don’t think there’s anything else you need to do, but the documentation here is quite vague and should probably be fixed.