coredata: Also clear compiler and run caches

pull/11908/head
Xavier Claessens 2 years ago committed by Eli Schwartz
parent 1d600b48cb
commit 543610468d
  1. 4
      mesonbuild/coredata.py
  2. 2
      mesonbuild/mconf.py

@ -717,9 +717,11 @@ class CoreData:
return dirty
def clear_deps_cache(self):
def clear_cache(self):
self.deps.host.clear()
self.deps.build.clear()
self.compiler_check_cache.clear()
self.run_check_cache.clear()
def get_nondefault_buildtype_args(self):
result = []

@ -86,7 +86,7 @@ class Conf:
raise ConfException(f'Directory {build_dir} is neither a Meson build directory nor a project source directory.')
def clear_cache(self):
self.coredata.clear_deps_cache()
self.coredata.clear_cache()
def set_options(self, options) -> bool:
return self.coredata.set_options(options)

Loading…
Cancel
Save