diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-06-05 17:36:58 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-06-07 16:40:51 -0400 |
commit | 2be09bbc929e1ba4dc4e47a0f6b67f2d81480725 (patch) | |
tree | 5e25d258894944cfd1091105abbc8f4a1acefa73 /mesonbuild | |
parent | c6f34b8c40edc55dbc91d77276326ec5d25acaad (diff) | |
download | meson-2be09bbc929e1ba4dc4e47a0f6b67f2d81480725.zip meson-2be09bbc929e1ba4dc4e47a0f6b67f2d81480725.tar.gz meson-2be09bbc929e1ba4dc4e47a0f6b67f2d81480725.tar.bz2 |
dependencies: add more logging to configtool
When retrieving variables from the tool, log some debug output the same
way that pkg-config does.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/dependencies/configtool.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/configtool.py b/mesonbuild/dependencies/configtool.py index 87cf738..99c0417 100644 --- a/mesonbuild/dependencies/configtool.py +++ b/mesonbuild/dependencies/configtool.py @@ -144,6 +144,11 @@ class ConfigToolDependency(ExternalDependency): def get_config_value(self, args: T.List[str], stage: str) -> T.List[str]: p, out, err = Popen_safe(self.config + args) + mlog.debug(f'Called `{mesonlib.join_args(self.config+args)}` -> {p.returncode}') + if out: + mlog.debug(f'stdout:\n{out}\n-----------') + if err: + mlog.debug(f'stderr:\n{err}\n-----------') if p.returncode != 0: if self.required: raise DependencyException(f'Could not generate {stage} for {self.name}.\n{err}') |