Fix meson build if dir already exists.
This commit is contained in:
parent
c6bcbd71fb
commit
ab585ea799
1 changed files with 2 additions and 3 deletions
|
@ -620,9 +620,8 @@ class Meson(BuildSystem):
|
|||
return "%s(%r)" % (type(self).__name__, self.path)
|
||||
|
||||
def _setup(self, session, fixers):
|
||||
if session.exists("build"):
|
||||
return
|
||||
session.check_call(['mkdir', 'build'])
|
||||
if not session.exists('build'):
|
||||
session.check_call(['mkdir', 'build'])
|
||||
run_with_build_fixers(session, ["meson", "setup", "build"], fixers)
|
||||
|
||||
def clean(self, session, resolver, fixers):
|
||||
|
|
Loading…
Add table
Reference in a new issue