What compiler could even make use of 10 cores? Most build processes I've run can't even fully utilize the 4 cores.
The speed record for building my software is held by a system with over 1k cores (a couple of seconds, compared to multiple minutes on a mid-size Threadripper).
add(1, 1) = 2
add(1, 2) = 3
add(1, 3) = 4
add(1, 4) = 5
...For example, make -j 10, or mvn -T 10.