[UBT] Print how far the build is to output log

Just wondering if it’s possible to improve this output:



4>Building 2382 actions with 16 processes...
4>  PCLaunch.rc
4>  Module.BuildSettings.cpp
4>  PCH.ImageWrapper.cpp
4>  PCLaunch.rc
4>  UE4Editor-BuildSettings.dll
4>     Creating library ...
4>  PCH.OpenExrWrapper.cpp
4>  SharedPCH.Core.cpp
4>  SharedPCH.CoreUObject.cpp
4>  Module.OpenExrWrapper.cpp
4>  Module.ImageWrapper.cpp
4>  PCH.Core.cpp
4>  Module.SlateCore.gen.cpp
4>  PCH.CoreUObject.cpp
4>  SharedPCH.Slate.NonOptimized.cpp
4>  SharedPCH.Slate.cpp
4>  Module.Core.2_of_10.cpp
4>  Module.RHI.cpp
4>  Module.Core.3_of_10.cpp
4>  Module.Core.5_of_10.cpp
4>  Module.Core.6_of_10.cpp
...


This might be going for several minutes and you have absolutely no idea how far the build is until it suddenly completes.
Can we have this instead?



4>Building 2382 actions with 16 processes...
4>   1 / 2382]  PCLaunch.rc
4>   2 / 2382]  Module.BuildSettings.cpp
4>   3 / 2382]  PCH.ImageWrapper.cpp
4>   4 / 2382]  PCLaunch.rc
4>   5 / 2382]  UE4Editor-BuildSettings.dll
4>   5 / 2382]     Creating library ...
4>   6 / 2382]  PCH.OpenExrWrapper.cpp
4>   7 / 2382]  SharedPCH.Core.cpp
4>   8 / 2382]  SharedPCH.CoreUObject.cpp
4>   9 / 2382]  Module.OpenExrWrapper.cpp
4>  10 / 2382]  Module.ImageWrapper.cpp
4>  11 / 2382]  PCH.Core.cpp
4>  12 / 2382]  Module.SlateCore.gen.cpp
4>  13 / 2382]  PCH.CoreUObject.cpp
4>  14 / 2382]  SharedPCH.Slate.NonOptimized.cpp
4>  15 / 2382]  SharedPCH.Slate.cpp
4>  16 / 2382]  Module.Core.2_of_10.cpp
4>  17 / 2382]  Module.RHI.cpp
4>  18 / 2382]  Module.Core.3_of_10.cpp
4>  19 / 2382]  Module.Core.5_of_10.cpp
4>  20 / 2382]  Module.Core.6_of_10.cpp
...


Please! This has bugged me forever.

I imagine you’re on the 4.20 preview because for reason unknown they removed the task numbering in 4.20.

In 4.19 it used to print at least for the Link actions, now in 4.20 it doesn’t print for any.

I just went ahead and added this: https://github.com/EpicGames/UnrealEngine/pull/4876

Not sure if there is a better place to put this, that seemed like the most sensible location.