Fix build if generated bindings file is missing

This commit is contained in:
Wojtek Figat
2021-12-31 17:07:35 +01:00
parent 6b3c6b6412
commit 45117e3445

View File

@@ -396,7 +396,7 @@ namespace Flax.Build
{
var project = GetModuleProject(module, buildData);
var binaryModuleSourcePath = Path.Combine(project.ProjectFolderPath, "Source", module.BinaryModuleName + ".Gen.cpp");
if (!cppFiles.Contains(binaryModuleSourcePath))
if (!cppFiles.Contains(binaryModuleSourcePath) && File.Exists(binaryModuleSourcePath))
cppFiles.Add(binaryModuleSourcePath);
}
}