From c66868d26cd54db1276a2d2ab5a9a59d97c497b9 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Mon, 26 Oct 2020 11:55:48 +0100 Subject: [PATCH] tools/ldgen: Fix parsing of sections names on Windows --- tools/ldgen/generation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ldgen/generation.py b/tools/ldgen/generation.py index da384faac5..f1f22e0e31 100644 --- a/tools/ldgen/generation.py +++ b/tools/ldgen/generation.py @@ -581,8 +581,8 @@ class SectionsInfo(dict): archive_path = (Literal("In archive").suppress() + White().suppress() + - # trim the last character (:) from archive_path - restOfLine.setResultsName("archive_path").setParseAction(lambda t: t[0][:-1])) + # trim the colon and line ending characters from archive_path + restOfLine.setResultsName("archive_path").setParseAction(lambda s, loc, toks: s.rstrip(":\n\r "))) parser = archive_path results = None