Fix statically linked binary modules not getting compiled

This commit is contained in:
2024-07-14 00:17:57 +03:00
parent d879b8e064
commit 24f7ec4a54

View File

@@ -500,7 +500,7 @@ namespace Flax.Build
}
// Compile C++ file with binary module (only for first module in the binary module to prevent multiple implementations)
if (buildData.BinaryModules.FirstOrDefault(x => x.Key == module.BinaryModuleName)?.First() == module)
if (buildData.BinaryModules.FirstOrDefault(x => x.Key == module.BinaryModuleName)?.First(x => !(x is DepsModule || x is HeaderOnlyModule)) == module)
{
var project = GetModuleProject(module, buildData);
var binaryModuleSourcePath = Path.Combine(project.ProjectFolderPath, "Source", module.BinaryModuleName + ".Gen.cpp");