diff --git a/pycheribuild/config/compilation_targets.py b/pycheribuild/config/compilation_targets.py index a7af5485e..817563326 100644 --- a/pycheribuild/config/compilation_targets.py +++ b/pycheribuild/config/compilation_targets.py @@ -60,7 +60,7 @@ from ..projects.run_qemu import AbstractLaunchFreeBSD # no-combine -@functools.lru_cache +@functools.lru_cache(maxsize=20) def _linker_supports_riscv_relaxations(linker: Path, config: CheriConfig) -> bool: try: linker_version = get_version_output(linker, config=config)