diff options
author | Christopher Dunn <cdunn2001@gmail.com> | 2018-06-21 19:48:56 -0500 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-07-01 17:00:33 +0000 |
commit | cb2e4877da1469098a5e252385a3aa7f63b18026 (patch) | |
tree | c516f2f0a0203cd345b1a43955cc4a484cc7eb71 | |
parent | f7f5e2a725d63eb15f627713129bb6c22d573106 (diff) | |
download | meson-cb2e4877da1469098a5e252385a3aa7f63b18026.zip meson-cb2e4877da1469098a5e252385a3aa7f63b18026.tar.gz meson-cb2e4877da1469098a5e252385a3aa7f63b18026.tar.bz2 |
Debug-log pkg-config calls
resolves #3607
-rw-r--r-- | mesonbuild/dependencies/base.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 07d06a1..c7b17e4 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -519,8 +519,12 @@ class PkgConfigDependency(ExternalDependency): self.version_reqs) def _call_pkgbin_real(self, args, env): - p, out = Popen_safe(self.pkgbin.get_command() + args, env=env)[0:2] - return p.returncode, out.strip() + cmd = self.pkgbin.get_command() + args + p, out = Popen_safe(cmd, env=env)[0:2] + rc, out = p.returncode, out.strip() + call = ' '.join(cmd) + mlog.debug("Called `{}` -> {}\n{}".format(call, rc, out)) + return rc, out def _call_pkgbin(self, args, env=None): if env is None: |