You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #jira none #ROBOMERGE-OWNER: ben.marsh #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536 via CL 10870955 #ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v624-10872983) [CL 10876681 by ben marsh in Dev-Build branch]
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using BuildAgent.Run;
|
|
using BuildAgent.Run.Interfaces;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BuildAgent.Matchers
|
|
{
|
|
[AutoRegister]
|
|
class LinkErrorMatcher : IErrorMatcher
|
|
{
|
|
public ErrorMatch Match(ReadOnlyLineBuffer Input)
|
|
{
|
|
if(Input.IsMatch(@"error: linker command failed with exit code "))
|
|
{
|
|
int MinIdx = Input.MatchBackwards(0, ": In function |: undefined reference to |[^a-zA-Z]ld: ");
|
|
return new ErrorMatch(ErrorSeverity.Error, ErrorPriority.Normal, "Link", Input, MinIdx, 0);
|
|
}
|
|
if (Input.IsMatch("Undefined symbols for architecture"))
|
|
{
|
|
int MaxOffset = Input.MatchForwardsUntil(0, "ld: symbol");
|
|
return new ErrorMatch(ErrorSeverity.Error, ErrorPriority.Normal, "Link", Input, 0, MaxOffset);
|
|
}
|
|
if (Input.IsMatch(@"LINK : fatal error"))
|
|
{
|
|
return new ErrorMatch(ErrorSeverity.Error, ErrorPriority.Normal, "Link", Input);
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
}
|