Even for compilation workloads, you need to benchmark beforehand. Threadrippers have lower boost clocks and (in the higher core count models) lower base frequencies than the high end Ryzen desktop CPUs. Most build systems are not optimized for such high core counts.