Slow build time with UE 4.15
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.
With the in 4.14.3 in took less than 16 seconds...
Now in 4.15, the same build 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:
[QUOTE]ERROR : UBT error : Failed to produce item: C:\Projects\xxx\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-xxx-9618.lib[/QUOTE]
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.
Are there any more steps to take advantage of the IWYU feature?
There was an issue related to IWYU causing problems for plugins recently as it's not on by default for Game configurations. I'm not sure if you're having the same issue with your project but try adding this to your .build.cs:
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs
answered Mar 02 '17 at 09:23 PM
I fixed it by: - Put these 2 lines in yourGame.Build.cs PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; bFasterWithoutUnity = true; - MAKE sure you follow all the recomendations/tips in https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/IWYUReferenceGuide/
answered Sep 13 '17 at 03:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here