I would try with something different. Here's the commands that I used when I was working with LLVM
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_LINKER=gold -DLLVM_TARGETS_TO_BUILD="<Insert Here your Backend>"
make -j $(nproc)