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

Eric Engestrom eric.engestrom at intel.com
Fri Mar 8 23:20:33 UTC 2019


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)

> +
>  </dl>
>  
>  <p>
> -- 
> 1.8.5.6
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list