Unreal 4.27 build from source taking long time

Hi. I’m building Unreal Engine from source, but it’s been more than 7 hours and it’s not finished. It is built for first time (i.e before was not finished fully), RAM is 5.5 from 5.7 GB used (i.e nearly all of it), CPU is Intel Core i3 5th generation with 2 cores and used 20-58%, disk is HDD and used fully 100%. I don’t know what to do. Is there a way to speed it up?

Just sit down and wait for a long time. Very-very long time. I have 8 cores 16 threads CPU and it takes ~2 hours to fully compile UE5. UE4 compilation is little bit faster.