Invalidate previous configurations on "waf configure"

Previously-configured projects are now invalidated when
running "waf configure" so that subsequent builds
cannot continue.
This commit is contained in:
Thomas Nagy 2020-09-19 10:38:05 +02:00
parent 2b03690f02
commit cc03657db7
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ class ConfigurationContext(Context.Context):
self.init_dirs()
self.cachedir = self.bldnode.make_node(Build.CACHE_DIR)
if os.path.exists(self.cachedir.abspath()):
shutil.rmtree(self.cachedir.abspath())
self.cachedir.mkdir()
path = os.path.join(self.bldnode.abspath(), WAF_CONFIG_LOG)