Skip to content
Snippets Groups Projects
Commit 26f1f2f1 authored by Frédéric Dalleau's avatar Frédéric Dalleau
Browse files

make distclean before configuring an existing folder

We suppose the intent from the user when configuring an existing
directory is to rebuild all the binaries for the new configuration. For
example, the user could have changed the sysroot.

Apertis: https://phabricator.apertis.org/T3557



Signed-off-by: default avatarFrédéric Dalleau <frederic.dalleau@collabora.com>
Reviewed-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
Differential Revision: https://phabricator.apertis.org/D6141
parent 7a5e6a83
No related branches found
No related tags found
No related merge requests found
......@@ -913,6 +913,9 @@ class Project:
if self.build_dir:
subprocess.run(['mkdir', '-p', self.build_dir])
if os.path.exists(os.path.join(self.root, self.build_dir, 'Makefile')):
self.make('distclean')
p = subprocess.Popen(args, cwd=os.path.join(self.root, self.build_dir), env=env)
p.wait()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment