Re: [PATCH 1/2] meson: report detected runtime executable paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 24, 2025 at 08:45:44PM -0400, Eli Schwartz wrote:
> On 4/24/25 9:38 AM, Patrick Steinhardt wrote:
> > diff --git a/meson.build b/meson.build
> > index c47cb79af08..8f04534c7ff 100644
> > --- a/meson.build
> > +++ b/meson.build
> > @@ -2080,3 +2080,9 @@ summary({
> >    'sha256': sha256_backend,
> >    'zlib': zlib_backend,
> >  }, section: 'Backends')
> > +
> > +summary({
> > +  'perl': target_perl.found() ? target_perl.full_path() : 'none',
> > +  'python': target_python.found() ? target_python.full_path() : 'none',
> > +  'shell': target_shell.full_path(),
> > +}, section: 'Runtime executable paths')
> 
> summary({
>   'perl': target_perl,
>   'python': target_python,
>   'shell': target_shell,
> }, section: 'Runtime executable paths')
> 
> 
> No need to check if they are found. Meson will print the full_path()
> already, if it is found, and if it is not found, it will print "NO" in
> its standard color code (red) for things-that-are-missing.

Oh, that's much nicer indeed. Thanks!

Patrick




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux