From 4ae629d2aae7194ec1034c73e2df50b5f028e76b Mon Sep 17 00:00:00 2001 From: Hemmo Nieminen Date: Fri, 30 Dec 2016 22:05:27 +0200 Subject: [PATCH] Use the correct directory for scan-build command. --- mesonbuild/scripts/scanbuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesonbuild/scripts/scanbuild.py b/mesonbuild/scripts/scanbuild.py index e17d2ad8a..728214fda 100644 --- a/mesonbuild/scripts/scanbuild.py +++ b/mesonbuild/scripts/scanbuild.py @@ -16,11 +16,12 @@ import os import subprocess import shutil import tempfile +from ..environment import detect_ninja def scanbuild(exename, srcdir, blddir, privdir, logdir, args): with tempfile.TemporaryDirectory(dir=privdir) as scandir: meson_cmd = [exename] + args - build_cmd = [exename, '-o', logdir, 'ninja'] + build_cmd = [exename, '-o', logdir, detect_ninja(), '-C', scandir] rc = subprocess.call(meson_cmd + [srcdir, scandir]) if rc != 0: return rc