Add a better error message when trying to use a module that is not included in an installed build.

#rb none
#jira

[CL 5215521 by Ben Marsh in 4.22 branch]
This commit is contained in:
Ben Marsh
2019-02-26 19:34:27 -05:00
parent 6cb3258067
commit 3a0cd6e440

View File

@@ -258,6 +258,11 @@ namespace UnrealBuildTool
// If the module is precompiled, read the object files from the manifest
if(Rules.bUsePrecompiled && Target.LinkType == TargetLinkType.Monolithic)
{
if(!FileReference.Exists(PrecompiledManifestLocation))
{
throw new BuildException("Missing precompiled manifest for '{0}'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in {0}.build.cs to override.", Name);
}
PrecompiledManifest Manifest = PrecompiledManifest.Read(PrecompiledManifestLocation);
foreach(FileReference OutputFile in Manifest.OutputFiles)
{