diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-03 00:12:47 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-09-04 15:38:12 +0200 |
commit | 492afe50a439d70df99d6e3e59572aff55e14c6b (patch) | |
tree | 80bb5b3013cacaf2884cc06e167da04b193dafc6 /mesonbuild/mcompile.py | |
parent | fa5c2363eb1dd94058aac1a4045d2ab546eed7b9 (diff) | |
download | meson-492afe50a439d70df99d6e3e59572aff55e14c6b.zip meson-492afe50a439d70df99d6e3e59572aff55e14c6b.tar.gz meson-492afe50a439d70df99d6e3e59572aff55e14c6b.tar.bz2 |
environment: use ExternalProgram to find ninja
This allows the NINJA environment variable to support all the Windows special
cases, especially allowing an absolute path without extension.
Based on a patch by Yonggang Luo.
Fixes: #7659
Suggested-by: Nirbheek Chauhan <nirbheek@centricular.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/mcompile.py')
-rw-r--r-- | mesonbuild/mcompile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py index 3199f59..8e2a38f 100644 --- a/mesonbuild/mcompile.py +++ b/mesonbuild/mcompile.py @@ -139,7 +139,7 @@ def get_parsed_args_ninja(options: 'argparse.Namespace', builddir: Path) -> T.Li raise MesonException('Cannot find ninja.') mlog.log('Found runner:', runner) - cmd = [runner, '-C', builddir.as_posix()] + cmd = runner + ['-C', builddir.as_posix()] if options.targets: intro_data = parse_introspect_data(builddir) |