dependencies: add more logging to configtool

When retrieving variables from the tool, log some debug output the same
way that pkg-config does.
pull/11853/head
Eli Schwartz 1 year ago
parent c6f34b8c40
commit 2be09bbc92
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 5
      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}')

Loading…
Cancel
Save