diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-29 14:04:47 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-29 21:44:46 +0200 |
commit | a52cd31a6ccc784cdcacebdb33719b223202f35d (patch) | |
tree | 4eae52e0fadee2d061e4a4c9936ead4a628a4128 /mesonbuild/mlog.py | |
parent | edccb11f015d51a1a45a936751a504f01641e928 (diff) | |
download | meson-a52cd31a6ccc784cdcacebdb33719b223202f35d.zip meson-a52cd31a6ccc784cdcacebdb33719b223202f35d.tar.gz meson-a52cd31a6ccc784cdcacebdb33719b223202f35d.tar.bz2 |
Print dependencies being used for compiler checks
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 095b8fd..890cb46 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): |