Files
UnrealEngineUWP/Engine/Source/Programs/BuildAgent/Run/Matchers/LinkErrorMatcher.cs
ben marsh 03ae195b79 Updating copyrights for Engine Programs.
#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]
2020-01-05 17:24:44 -05:00

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;
}
}
}