Skip to content

Commit d5f5da8

Browse files
committed
Fix caching when parsing LD script
1 parent d9605bc commit d5f5da8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builder/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# pylint: disable=redefined-outer-name
1616

17+
import functools
1718
import re
1819
import sys
1920
from os.path import join
@@ -46,6 +47,7 @@ def _parse_size(value):
4647
return value
4748

4849

50+
@functools.lru_cache(maxsize=None)
4951
def _parse_ld_sizes(ldscript_path):
5052
assert ldscript_path
5153
result = {}

0 commit comments

Comments
 (0)