[Mesa-dev] [PATCH] docs: document Meson -Dc_args and -Dcpp_args

Brian Paul brian.e.paul at gmail.com
Sun Mar 10 20:35:11 UTC 2019


On Fri, Mar 8, 2019 at 4:20 PM Eric Engestrom <eric.engestrom at intel.com>
wrote:

> On Friday, 2019-03-08 15:54:37 -0700, Brian Paul wrote:
> > ---
> >  docs/meson.html | 13 +++++++++++++
> >  1 file changed, 13 insertions(+)
> >
> > diff --git a/docs/meson.html b/docs/meson.html
> > index 7ffef81..43090aa 100644
> > --- a/docs/meson.html
> > +++ b/docs/meson.html
> > @@ -274,6 +274,19 @@ on the system. This environment variable is used to
> control the search path for
> >  <code>PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig</code> will search for
> package
> >  metadata in <code>/usr/X11R6</code> before the standard directories.</p>
> >  </dd>
> > +
> > +<dl>
> > +<dt>Extra Compiler Flags</dt>
> > +<dd>
> > +<p>
> > +If you need to pass additional flags to the C/C++ compiler, one can use
> > +the <code>-Dc_args</code> or <code>-Dcpp_args</code> options.  For
> example:
> > +</p>
> > +<code>
> > +meson builddir/ -Dc_args=-fmax-errors=10 -Dcpp_args=-DMAGIC=123
> > +</code>
> > +</dd>
>
> This is already explained in the "Environment Variables" section on this
> page. Perhaps it should be rephrased instead, if it didn't have the
> information you were looking for, or wasn't clear?
> ("env var" is an accident of how autotools used to do it, and might not
> be the best title for it in meson, for instance)
>

Yeah, I think I only skimmed over that and didn't make the connection
between environment variables and meson configuration options.  I'll rework
this patch on Monday.  Thanks.

-Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190310/dcff6fe4/attachment.html>


More information about the mesa-dev mailing list