How can I avoid recompiling the same CPP files on the Mac platform every time I package my Unreal Engine project?

Hello everyone,

I hope this message finds you well. I am currently working on a project using Unreal Engine 4 (UE4) on the Mac platform, and I’ve encountered an issue during the packaging process. Every time I package my project, UE4 recompiles a large number of CPP files, even when there haven’t been any changes to these files or their dependencies. This leads to significantly longer build times and impacts productivity.

Could anyone kindly advise if there is a way to optimize this process on Mac? Specifically, I’m looking for methods or configurations that would allow only modified files and their necessary dependencies to be recompiled during the packaging operation. My goal is to prevent redundant compilation of unchanged source code, thereby speeding up the packaging process.

Any advice, suggestions, or insights on achieving more efficient builds on the Mac platform would be greatly appreciated. Thank you in advance for your help!

Best regards,
Davin