aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/scanbuild.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-09-03 00:12:47 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-04 15:38:12 +0200
commit492afe50a439d70df99d6e3e59572aff55e14c6b (patch)
tree80bb5b3013cacaf2884cc06e167da04b193dafc6 /mesonbuild/scripts/scanbuild.py
parentfa5c2363eb1dd94058aac1a4045d2ab546eed7b9 (diff)
downloadmeson-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/scripts/scanbuild.py')
-rw-r--r--mesonbuild/scripts/scanbuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/scripts/scanbuild.py b/mesonbuild/scripts/scanbuild.py
index b9e96d2..0190067 100644
--- a/mesonbuild/scripts/scanbuild.py
+++ b/mesonbuild/scripts/scanbuild.py
@@ -22,7 +22,7 @@ from ..environment import detect_ninja, detect_scanbuild
def scanbuild(exelist, srcdir, blddir, privdir, logdir, args):
with tempfile.TemporaryDirectory(dir=privdir) as scandir:
meson_cmd = exelist + args
- build_cmd = exelist + ['-o', logdir, detect_ninja(), '-C', scandir]
+ build_cmd = exelist + ['-o', logdir] + detect_ninja() + ['-C', scandir]
rc = subprocess.call(meson_cmd + [srcdir, scandir])
if rc != 0:
return rc