Fix serialization bug when compiling with Clang
This commit is contained in:
@@ -3132,6 +3132,8 @@ namespace Flax.Build.Bindings
|
|||||||
CppIncludeFilesList.Add(fileInfo.Name);
|
CppIncludeFilesList.Add(fileInfo.Name);
|
||||||
CppIncludeFilesList.AddRange(CppIncludeFiles);
|
CppIncludeFilesList.AddRange(CppIncludeFiles);
|
||||||
CppIncludeFilesList.Sort();
|
CppIncludeFilesList.Sort();
|
||||||
|
if (CppIncludeFilesList.Remove("Engine/Serialization/Serialization.h"))
|
||||||
|
CppIncludeFilesList.Add("Engine/Serialization/Serialization.h");
|
||||||
foreach (var path in CppIncludeFilesList)
|
foreach (var path in CppIncludeFilesList)
|
||||||
header.AppendFormat("#include \"{0}\"", path).AppendLine();
|
header.AppendFormat("#include \"{0}\"", path).AppendLine();
|
||||||
contents.Insert(headerPos, header.ToString());
|
contents.Insert(headerPos, header.ToString());
|
||||||
|
|||||||
Reference in New Issue
Block a user