You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UnrealBuildTool: Fix a rare exeception I saw when generating project files
#rnx [CL 29197565 by joe kirchoff in ue5-main branch]
This commit is contained in:
@@ -342,13 +342,11 @@ namespace UnrealBuildTool
|
||||
GlobalDefinitions.Add("USE_ANDROID_LAUNCH=0");
|
||||
GlobalDefinitions.Add("USE_ANDROID_JNI=0");
|
||||
|
||||
string VersionScriptFile = Path.GetTempPath() + "LLTWorkaroundScrip.ldscript";
|
||||
using (StreamWriter Writer = System.IO.File.CreateText(VersionScriptFile))
|
||||
{
|
||||
// Workaround for a linker bug when building LowLevelTests for Android
|
||||
Writer.WriteLine("{ local: *; };");
|
||||
}
|
||||
AdditionalLinkerArguments = " -Wl,--version-script=\"" + VersionScriptFile + "\"";
|
||||
// Workaround for a linker bug when building LowLevelTests for Android
|
||||
// TODO: This should be written to the intermediate directory, somewhere else not when TargetRules are being created
|
||||
FileReference VersionScriptFile = new FileReference(Path.GetTempPath() + $"LLTWorkaroundScrip-{Name}.ldscript");
|
||||
FileReference.WriteAllTextIfDifferent(VersionScriptFile, "{ local: *; };");
|
||||
AdditionalLinkerArguments = " -Wl,--version-script=\"" + VersionScriptFile.FullName + "\"";
|
||||
}
|
||||
else if (Target.Platform == UnrealTargetPlatform.IOS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user