meson: add cache for getting options

calling this function too ~60 sec. before, now 0.000435 sec.
pull/5555/head
Marcel Hollerbach 5 years ago committed by Jussi Pakkanen
parent 59e5ad66f2
commit f39d2cc3bf
  1. 1
      mesonbuild/backend/backends.py

@ -226,6 +226,7 @@ class Backend:
return None
raise AssertionError('BUG: Tried to link to {!r} which is not linkable'.format(target))
@lru_cache(maxsize=None)
def get_target_dir(self, target):
if self.environment.coredata.get_builtin_option('layout') == 'mirror':
dirname = target.get_subdir()

Loading…
Cancel
Save