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,8 +620,7 @@ class Meson(BuildSystem):
|
||||||
return "%s(%r)" % (type(self).__name__, self.path)
|
return "%s(%r)" % (type(self).__name__, self.path)
|
||||||
|
|
||||||
def _setup(self, session, fixers):
|
def _setup(self, session, fixers):
|
||||||
if session.exists("build"):
|
if not session.exists('build'):
|
||||||
return
|
|
||||||
session.check_call(['mkdir', 'build'])
|
session.check_call(['mkdir', 'build'])
|
||||||
run_with_build_fixers(session, ["meson", "setup", "build"], fixers)
|
run_with_build_fixers(session, ["meson", "setup", "build"], fixers)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue