Merge branch 'GoaLitiuM-module_compilation_fix'

This commit is contained in:
Wojtek Figat
2024-07-25 08:41:07 +02:00

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) // 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 project = GetModuleProject(module, buildData);
var binaryModuleSourcePath = Path.Combine(project.ProjectFolderPath, "Source", module.BinaryModuleName + ".Gen.cpp"); var binaryModuleSourcePath = Path.Combine(project.ProjectFolderPath, "Source", module.BinaryModuleName + ".Gen.cpp");