Skip to content

Commit 986de7e

Browse files
author
Roberto De Ioris
committed
improved build system
1 parent 68de485 commit 986de7e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎Source/UnrealEnginePython/Private/Slate/UEPySWidget.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ static PyObject *ue_PySWidget_str(ue_PySWidget *self)
99
TCHAR_TO_UTF8(*self->Widget->GetTypeAsString()), &self->Widget.Get(), self->Widget.GetSharedReferenceCount(), self->ob_base.ob_refcnt);
1010
#else
1111
return PyUnicode_FromFormat("<unreal_engine.%s '%p' (slate ref count: %d)>",
12-
TCHAR_TO_UTF8(*self->Widget->GetTypeAsString()), &self->s_widget.Get(), self->Widget.GetSharedReferenceCount());
12+
TCHAR_TO_UTF8(*self->Widget->GetTypeAsString()), &self->Widget.Get(), self->Widget.GetSharedReferenceCount());
1313
#endif
1414
}
1515

‎Source/UnrealEnginePython/Public/UnrealEnginePython.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
#include <Python.h>
1818
#include <structmember.h>
1919
#else
20+
#include <include/pyconfig.h>
21+
#ifndef SIZEOF_PID_T
22+
#define SIZEOF_PID_T 4
23+
#endif
2024
#include <include/Python.h>
2125
#include <include/structmember.h>
2226
#endif

‎Source/UnrealEnginePython/UnrealEnginePython.Build.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public UnrealEnginePython(TargetInfo Target)
8080
{
8181

8282
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
83-
bFasterWithoutUnity = true;
83+
string enableUnityBuild = System.Environment.GetEnvironmentVariable("UEP_ENABLE_UNITY_BUILD");
84+
bFasterWithoutUnity = string.IsNullOrEmpty(enableUnityBuild);
8485

8586
PublicIncludePaths.AddRange(
8687
new string[] {

0 commit comments

Comments
 (0)