From 2ced5e02eacfc6b9e67435fe3a24dcb6c3a29037 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 31 Mar 2025 15:58:51 -0600 Subject: measurestack: Compile all regexes upfront --- build-aux/measurestack/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build-aux/measurestack/__init__.py') diff --git a/build-aux/measurestack/__init__.py b/build-aux/measurestack/__init__.py index b38a3c8..c1b9d7f 100644 --- a/build-aux/measurestack/__init__.py +++ b/build-aux/measurestack/__init__.py @@ -14,13 +14,14 @@ __all__ = [ ] +re_c_obj_suffix = re.compile(r"\.c\.(?:o|obj)$") + + def main() -> None: pico_platform = sys.argv[1] base_dir = sys.argv[2] obj_fnames = set(sys.argv[3:]) - re_c_obj_suffix = re.compile(r"\.c\.(?:o|obj)$") - c_fnames: set[str] = set() ci_fnames: set[str] = set() for obj_fname in obj_fnames: -- cgit v1.2.3-2-g168b