4.15 C++ Transition Guide

Since I transitionned our project to UE 4.15 I experience very long time to build the project, even when I just update the CPP file.

In UE 4.14 in took less than 16 seconds…
Now it takes around 55 seconds.

What I changed in the code base was to remove the include to engine.h in our main header file, and replaced that line by CoreMinimal.h. I also added a few includes in the game code where needed.

I tried to play with the flag bEnforceIWYU in the build.cs file, but either true and false make the build last much longer…

I also have this error in the log of visual studio 2015 when I build:

This does not prevent the editor from successfully hot-reloading the code, but when I attach VS to the editor I can’t step in the code like I could do in UE 4.14.

We’ll revert to UE 4.14.3, waiting for things to behave better, maybe in a future patch?

In the nean time I have entered a bug report here : Slow build time with UE 4.15 - Programming & Scripting - Epic Developer Community Forums