https://reviews.llvm.org/D42632 increases my CI build time from "completed in 53 minutes" to "only finished building [1492 / 1603] (93%) in 1 hour".
Pass -DLLVM_ENABLE_PDB=OFF if you do not want PDB.
Drive-by-fix: add /OPT:REF and /OPT:ICF after /DEBUG.
Can I ask you to use option(LLVM_ENABLE_PDB ON) instead?
I think LLVM_ENABLE_PDB in if condition is easy to understand than NOT LLVM_DISABLE_PDB.