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"
pull/10303/head
Peter Eisentraut 3 years ago committed by Jussi Pakkanen
parent 950fd06bc3
commit 8e4fecdd0f
  1. 4
      mesonbuild/interpreter/compiler.py

@ -533,7 +533,7 @@ class CompilerHolder(ObjectHolder['Compiler']):
hname, symbol = args hname, symbol = args
disabled, required, feature = extract_required_kwarg(kwargs, self.subproject, default=False) disabled, required, feature = extract_required_kwarg(kwargs, self.subproject, default=False)
if disabled: 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 return False
extra_args = functools.partial(self._determine_args, kwargs['no_builtin_args'], kwargs['include_directories'], kwargs['args']) extra_args = functools.partial(self._determine_args, kwargs['no_builtin_args'], kwargs['include_directories'], kwargs['args'])
deps, msg = self._determine_dependencies(kwargs['dependencies']) deps, msg = self._determine_dependencies(kwargs['dependencies'])
@ -547,7 +547,7 @@ class CompilerHolder(ObjectHolder['Compiler']):
else: else:
h = mlog.red('NO') h = mlog.red('NO')
cached_msg = mlog.blue('(cached)') if cached else '' 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 return haz
def notfound_library(self, libname: str) -> 'dependencies.ExternalLibrary': def notfound_library(self, libname: str) -> 'dependencies.ExternalLibrary':

Loading…
Cancel
Save