diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-29 14:04:47 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-29 14:04:47 +0000 |
commit | 61d176244fb6c962f2e569f85ba8027cc7a97bb1 (patch) | |
tree | 49fcac8d2f2beab0314b29106954c9c2dbb68f6f /mesonbuild/mlog.py | |
parent | 1c2cfe45292aea0e6f938098add92f3dd90727f1 (diff) | |
download | meson-nirbheek/has-function-library.tar.gz |
Print dependencies being used for compiler checksnirbheek/has-function-library
It is a common idiom to look for a function or a specific type or
a header in various locations/libraries, and it can be confusing to
see the (seemingly) identical compiler check being done multiple
times.
Now we print the dependencies being used when a compiler check is run
Before:
Checking for function "fbGetDisplay": NO
Checking for type "GLeglImageOES": YES
Checking for function "asinh": YES
After:
Checking for function "fbGetDisplay" with dependency egl: NO
Checking for type "GLeglImageOES" with dependencies glesv2, gl: YES
Checking for function "asinh" with dependency -lm: YES
Diffstat (limited to 'mesonbuild/mlog.py')
-rw-r--r-- | mesonbuild/mlog.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py index 095b8fd96..890cb46de 100644 --- a/mesonbuild/mlog.py +++ b/mesonbuild/mlog.py @@ -104,6 +104,8 @@ def process_markup(args, keep): if log_timestamp_start is not None: arr = ['[{:.3f}]'.format(time.monotonic() - log_timestamp_start)] for arg in args: + if arg is None: + continue if isinstance(arg, str): arr.append(arg) elif isinstance(arg, AnsiDecorator): |