You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Do not use --pic for modular builds on any Microsoft-based platforms, not just Windows.
#jira UE-151434 #rnx #rb Nuno.Leiria #preflight 627d3c1d332e182a583f8db4 [CL 20166726 by David Harvey in ue5-main branch]
This commit is contained in:
@@ -383,10 +383,10 @@ namespace UnrealBuildTool
|
||||
Arguments.Add(String.Format("--cpu={0}", CpuTarget));
|
||||
}
|
||||
|
||||
// PIC is needed for modular builds except on Windows
|
||||
// PIC is needed for modular builds except on Microsoft platforms
|
||||
if ((CompileEnvironment.bIsBuildingDLL ||
|
||||
CompileEnvironment.bIsBuildingLibrary) &&
|
||||
!UEBuildPlatform.IsPlatformInGroup(CompileEnvironment.Platform, UnrealPlatformGroup.Windows))
|
||||
!UEBuildPlatform.IsPlatformInGroup(CompileEnvironment.Platform, UnrealPlatformGroup.Microsoft))
|
||||
{
|
||||
Arguments.Add("--pic");
|
||||
}
|
||||
@@ -588,10 +588,10 @@ namespace UnrealBuildTool
|
||||
Arguments.Add("-O2");
|
||||
}
|
||||
|
||||
// PIC is needed for modular builds except on Windows
|
||||
// PIC is needed for modular builds except on Microsoft platforms
|
||||
if ((CompileEnvironment.bIsBuildingDLL ||
|
||||
CompileEnvironment.bIsBuildingLibrary) &&
|
||||
!UEBuildPlatform.IsPlatformInGroup(CompileEnvironment.Platform, UnrealPlatformGroup.Windows))
|
||||
!UEBuildPlatform.IsPlatformInGroup(CompileEnvironment.Platform, UnrealPlatformGroup.Microsoft))
|
||||
{
|
||||
Arguments.Add("--pic");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user