Revert "backends: Cache creation of install data"

This reverts commit 904b47085f.

This is not a real bottleneck, and we want to create it thrice -- once
before the backend is generated. The final install data needs to be
created fresh.

Update unittest to demonstrate the issue.

Fixes https://bugs.gentoo.org/910050
This commit is contained in:
Eli Schwartz 2023-07-09 00:47:46 -04:00 committed by Jussi Pakkanen
parent ecbba0c45b
commit 4166bf1eb2
3 changed files with 2 additions and 1 deletions

View File

@ -1605,7 +1605,6 @@ class Backend:
mlog.log(f'Running postconf script {name!r}')
run_exe(s, env)
@lru_cache(maxsize=1)
def create_install_data(self) -> InstallData:
strip_bin = self.environment.lookup_binary_entry(MachineChoice.HOST, 'strip')
if strip_bin is None:

View File

@ -2,6 +2,8 @@ project('built library', 'c')
cc = meson.get_compiler('c')
import('python').find_installation().install_sources('foo.py')
if host_machine.system() != 'cygwin'
# bar_in_system has undefined symbols, but still must be found
bar_system_dep = cc.find_library('bar_in_system')