diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-05-18 08:42:19 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-05-24 20:18:19 +0300 |
commit | 8e4fecdd0f8c23f6b0674915059c8cb470ed17b3 (patch) | |
tree | f3c4b29df296d7913e1e72fc6db988015a29d4fa /mesonbuild/interpreter | |
parent | 950fd06bc312bd72411e721eecab8c740f246203 (diff) | |
download | meson-8e4fecdd0f8c23f6b0674915059c8cb470ed17b3.zip meson-8e4fecdd0f8c23f6b0674915059c8cb470ed17b3.tar.gz meson-8e4fecdd0f8c23f6b0674915059c8cb470ed17b3.tar.bz2 |
Tweak "header has symbol" message
Change message
Header <foo.h> has symbol "BAR"
to
Header "foo.h" has symbol "BAR"
with the first part also now in bold. This is more consistent with
other messages like
Has header "foo.h"
and
Checking whether type "foo" has member "bar"
Diffstat (limited to 'mesonbuild/interpreter')
-rw-r--r-- | mesonbuild/interpreter/compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/compiler.py b/mesonbuild/interpreter/compiler.py index c5db6aa..d75883a 100644 --- a/mesonbuild/interpreter/compiler.py +++ b/mesonbuild/interpreter/compiler.py @@ -533,7 +533,7 @@ class CompilerHolder(ObjectHolder['Compiler']): hname, symbol = args disabled, required, feature = extract_required_kwarg(kwargs, self.subproject, default=False) if disabled: - mlog.log(f'Header <{hname}> has symbol', mlog.bold(symbol, True), 'skipped: feature', mlog.bold(feature), 'disabled') + mlog.log('Header', mlog.bold(hname, True), 'has symbol', mlog.bold(symbol, True), 'skipped: feature', mlog.bold(feature), 'disabled') return False extra_args = functools.partial(self._determine_args, kwargs['no_builtin_args'], kwargs['include_directories'], kwargs['args']) deps, msg = self._determine_dependencies(kwargs['dependencies']) @@ -547,7 +547,7 @@ class CompilerHolder(ObjectHolder['Compiler']): else: h = mlog.red('NO') cached_msg = mlog.blue('(cached)') if cached else '' - mlog.log(f'Header <{hname}> has symbol', mlog.bold(symbol, True), msg, h, cached_msg) + mlog.log('Header', mlog.bold(hname, True), 'has symbol', mlog.bold(symbol, True), msg, h, cached_msg) return haz def notfound_library(self, libname: str) -> 'dependencies.ExternalLibrary': |