diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-31 15:58:51 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-01 05:09:44 -0600 |
commit | 2ced5e02eacfc6b9e67435fe3a24dcb6c3a29037 (patch) | |
tree | a228eef90a7000c80dab582630b85d04dac923ee /build-aux/measurestack/__init__.py | |
parent | 1a0c67835cd74c6bf2113bb14a7f1b520508c536 (diff) |
measurestack: Compile all regexes upfront
Diffstat (limited to 'build-aux/measurestack/__init__.py')
-rw-r--r-- | build-aux/measurestack/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
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: |