Fix serialization bug when compiling with Clang

This commit is contained in:
Wojtek Figat
2024-02-29 01:41:53 +01:00
parent 4df56cb506
commit 161773a8be

View File

@@ -3132,6 +3132,8 @@ namespace Flax.Build.Bindings
CppIncludeFilesList.Add(fileInfo.Name);
CppIncludeFilesList.AddRange(CppIncludeFiles);
CppIncludeFilesList.Sort();
if (CppIncludeFilesList.Remove("Engine/Serialization/Serialization.h"))
CppIncludeFilesList.Add("Engine/Serialization/Serialization.h");
foreach (var path in CppIncludeFilesList)
header.AppendFormat("#include \"{0}\"", path).AppendLine();
contents.Insert(headerPos, header.ToString());