StaticLighting: Prevent UnrealLightmass from being compiled in configurations other than Debug and Development. Also check the Lightmass executable with Development configuration specifically since the editor can default to DebugGame

#preflight 633b13f36b10157eac5d6357

[CL 22322280 by yujiang wang in ue5-main branch]
This commit is contained in:
yujiang wang
2022-10-03 20:40:20 -04:00
parent 65599890f0
commit aba16650b3
3 changed files with 4 additions and 3 deletions

View File

@@ -436,7 +436,7 @@ namespace UnrealBuildTool
foreach (Project ProjectTarget in ProjectTargets)
{
string TargetName = ProjectTargets[0].TargetRules!.Name;
if (TargetName == "ShaderCompileWorker" || TargetName == "UnrealLightmass")
if (TargetName == "ShaderCompileWorker")
{
MatchingProjectTargets.Add(ProjectTarget);
break;

View File

@@ -4,6 +4,7 @@ using UnrealBuildTool;
using System.Collections.Generic;
[SupportedPlatforms(UnrealPlatformClass.Desktop)]
[SupportedConfigurations(UnrealTargetConfiguration.Debug, UnrealTargetConfiguration.Development)]
public class UnrealLightmassTarget : TargetRules
{
public UnrealLightmassTarget(TargetInfo Target) : base(Target)