On Tue, 1 Dec 2020 22:49:06 GMT, Erik Joelsson <er...@openjdk.org> wrote:

> After fixing JDK-8256810 and starting to look into backporting it, I 
> discovered more potential failing cases. Certain versions of GCC may 
> sometimes output multiple prerequisite files on the same line. I think the 
> easiest way to handle this new issue is to split such lines.
> 
> When splitting lines, we need to make sure to not just split on any space. 
> Some compilers output the : of the rule with a leading space, and already 
> split lines will have a space before the backslash.

As before, regex is write-only code. :-& But I think this does what you claim 
it to do. :)

I'm not sure how hard it would be to add unit testing of this function 
(probably quite tricky), but it's starting to get close to the point were it's 
worth it.

-------------

Marked as reviewed by ihse (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/1548

Reply via email to