Use checks in shipping build, without modifying .Target.cs file

bo0olean
Thu, 03 Feb 2022 04:24:59 +0000
C++

Hello,

I want to enable check() in shipping builds. The current way to do this is by modifying project’s Target.cs file like

//Project.Target.cs
if (Configuration == UnrealTargetConfiguration.Shipping)
{
    BuildEnvironment = TargetBuildEnvironment.Unique;
    bUseChecksInShipping = true;
}

The above method requires us to have source code of unreal engine for build, because of the BuildEnvironment=TargetBuildEnvironment.Unique setting. But, I do not want to do it this way, because having source code to build project as a requirement is bad for my project. Is there another way to use check() in shipping builds?

Cheers!

3 posts - 3 participants