Fix building project for target platform that one of the plugin targets doesn't support

This commit is contained in:
Wojciech Figat
2022-01-29 14:55:37 +01:00
parent 0caeffc3cd
commit b09036b378

View File

@@ -498,6 +498,11 @@ namespace Flax.Build
Log.Verbose("No target selected for build");
return;
}
if (!target.Platforms.Contains(buildData.Platform.Target) || !target.Architectures.Contains(buildData.Architecture))
{
Log.Verbose($"Referenced target {reference.Project.Name} doesn't support {buildData.Platform.Target} {buildData.Architecture}");
return;
}
if (!buildContext.TryGetValue(target, out var referencedBuildData))
{
Log.Info($"Building referenced target {reference.Project.Name}");