Handle ninja dist not working.
This commit is contained in:
parent
51bc44dee6
commit
90d6120e81
1 changed files with 6 additions and 1 deletions
|
@ -764,7 +764,12 @@ class Meson(BuildSystem):
|
||||||
def dist(self, session, resolver, fixers, target_directory, quiet=False):
|
def dist(self, session, resolver, fixers, target_directory, quiet=False):
|
||||||
self._setup(session, fixers)
|
self._setup(session, fixers)
|
||||||
with DistCatcher([session.external_path("build/meson-dist")]) as dc:
|
with DistCatcher([session.external_path("build/meson-dist")]) as dc:
|
||||||
run_with_build_fixers(session, ["ninja", "-C", "build", "dist"], fixers)
|
try:
|
||||||
|
run_with_build_fixers(session, ["ninja", "-C", "build", "dist"], fixers)
|
||||||
|
except UnidentifiedError as e:
|
||||||
|
if "ninja: error: unknown target 'dist', did you mean 'dino'?" in e.lines:
|
||||||
|
raise NotImplementedError
|
||||||
|
raise
|
||||||
return dc.copy_single(target_directory)
|
return dc.copy_single(target_directory)
|
||||||
|
|
||||||
def test(self, session, resolver, fixers):
|
def test(self, session, resolver, fixers):
|
||||||
|
|
Loading…
Add table
Reference in a new issue