Clear stale saved Engine config files when running the DDC Commandlet without a project.

#preflight 621e8619b20446f11c6cdf39
#jira UE-143876
#rb Josh.Adams
#rnx


#ROBOMERGE-AUTHOR: matt.peters
#ROBOMERGE-SOURCE: CL 19210055 via CL 19210543 via CL 19211966 via CL 19212028 via CL 19212167
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19224150 by matt peters in ue5-main branch]
This commit is contained in:
matt peters
2022-03-02 13:12:29 -05:00
parent 17192faa91
commit 343a6d9279

View File

@@ -97,6 +97,10 @@ public class BuildDerivedDataCache : BuildCommand
}
// Before running the Engine, delete any stale saved Config files from previous runs of the Engine. The list of enabled plugins can change, and the config file needs to be
// recomputed after they do, but there is currently nothing that makes that happen automatically
CommandUtils.DeleteDirectory(CommandUtils.CombinePaths(TempDir, "Engine", "Saved", "Config"));
// Generate DDC for the editor, and merge all the other PAK files in
CommandUtils.LogInformation("Generating DDC data for engine content on {0}", TargetPlatforms);
CommandUtils.DDCCommandlet(null, EditorExe, null, TargetPlatforms, String.Format("-fill -DDC={0} -MergePaks={1}{2}", BackendName, CommandUtils.MakePathSafeToUseWithCommandLine(String.Join("+", ProjectPakFiles)), bSkipEngine? " -projectonly" : ""));