UE4 4.21 Increased Linux Binary Size
We just upgraded to from 4.20 to 4.21 and our Linux standalone binaries have grown from ~300MB to ~3GB.
I've diffed the UBT build files for Linux and nothing is jumping out at me that would cause the issue. We are using the cross compile toolchain on windows and have updated to using v12_clang-6.0.1-centos7. No significant change in Win64 standalone binary size.
Is anyone else seeing this? Any ideas as to what is going wrong?
asked Nov 28 '18 at 07:47 PM in Linux
You are talking only about the debug info, right, the stripped binaries are roughly the same? If so, two things might have contributed: the debug info for generated code is now on by default (you can disable it in Target.cs file of a particular target or in TargetRules.cs globally, set bDisableDebugInfoForGeneratedCode=true), and -fstandalone-debug was enabled. This was all done in attempts to improve the debug experience, however -fstandalone-debug has been undone for 4.21.1 (in monolithic builds), see this commit.
Follow this question
Once you sign in you will be able to subscribe for any updates here