Skip to content

Commit

Permalink
fix: weaver test assembler shouldn't log compiler errors anymore (202…
Browse files Browse the repository at this point in the history
…0.2+))
  • Loading branch information
Lymdun committed Apr 17, 2021
1 parent 7fac176 commit af1ceb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Tests/Weaver/Assembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public static AssemblyDefinition Build(IWeaverLogger logger)
assemblyBuilder.buildFinished += delegate (string assemblyPath, CompilerMessage[] compilerMessages)
{
CompilerMessages.AddRange(compilerMessages);
#if !UNITY_2020_2_OR_NEWER
foreach (CompilerMessage cm in compilerMessages)
{
if (cm.type == CompilerMessageType.Error)
Expand All @@ -187,6 +188,7 @@ public static AssemblyDefinition Build(IWeaverLogger logger)
CompilerErrors = true;
}
}
#endif

// assembly builder does not call ILPostProcessor (WTF Unity?), so we must invoke it ourselves.
var compiledAssembly = new CompiledAssembly(assemblyPath)
Expand Down

0 comments on commit af1ceb4

Please sign in to comment.