diff options
author | Marvin Scholz <epirat07@gmail.com> | 2019-07-15 12:14:59 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-11-07 17:52:44 +0530 |
commit | a26c8282b3b06b041850d70f303c949edfa061d5 (patch) | |
tree | d72cd28a727ccf9f01fbe631619b2db63e1e81ae | |
parent | 7cdfc230bb4490856a705ad657cc2dda4ca60ff1 (diff) | |
download | meson-a26c8282b3b06b041850d70f303c949edfa061d5.zip meson-a26c8282b3b06b041850d70f303c949edfa061d5.tar.gz meson-a26c8282b3b06b041850d70f303c949edfa061d5.tar.bz2 |
dependencies/pkgconfig: Log pkg-config exceptions
This means that when either cflags or libs lookup fails, this will be
logged always in the log, leading to much easier to debug messages
like:
Called `/usr/local/bin/pkg-config --cflags gnutls` -> 1
pkg-config error with 'gnutls': Could not generate cargs for gnutls:
Package nettle was not found in the pkg-config search path.
Perhaps you should add the directory containing `nettle.pc'
to the PKG_CONFIG_PATH environment variable
Package 'nettle', required by 'gnutls', not found
Run-time dependency gnutls found: NO (tried pkgconfig)
-rw-r--r-- | mesonbuild/dependencies/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 47477eb..a5f129c 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -657,6 +657,7 @@ class PkgConfigDependency(ExternalDependency): # Fetch the libraries and library paths needed for using this self._set_libs() except DependencyException as e: + mlog.debug("pkg-config error with '%s': %s" % (name, e)) if self.required: raise else: |