<div dir="ltr"><div dir="ltr">On Fri, Mar 8, 2019 at 4:20 PM Eric Engestrom <<a href="mailto:eric.engestrom@intel.com">eric.engestrom@intel.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Friday, 2019-03-08 15:54:37 -0700, Brian Paul wrote:<br>
> ---<br>
> docs/meson.html | 13 +++++++++++++<br>
> 1 file changed, 13 insertions(+)<br>
> <br>
> diff --git a/docs/meson.html b/docs/meson.html<br>
> index 7ffef81..43090aa 100644<br>
> --- a/docs/meson.html<br>
> +++ b/docs/meson.html<br>
> @@ -274,6 +274,19 @@ on the system. This environment variable is used to control the search path for<br>
> <code>PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig</code> will search for package<br>
> metadata in <code>/usr/X11R6</code> before the standard directories.</p><br>
> </dd><br>
> +<br>
> +<dl><br>
> +<dt>Extra Compiler Flags</dt><br>
> +<dd><br>
> +<p><br>
> +If you need to pass additional flags to the C/C++ compiler, one can use<br>
> +the <code>-Dc_args</code> or <code>-Dcpp_args</code> options. For example:<br>
> +</p><br>
> +<code><br>
> +meson builddir/ -Dc_args=-fmax-errors=10 -Dcpp_args=-DMAGIC=123<br>
> +</code><br>
> +</dd><br>
<br>
This is already explained in the "Environment Variables" section on this<br>
page. Perhaps it should be rephrased instead, if it didn't have the<br>
information you were looking for, or wasn't clear?<br>
("env var" is an accident of how autotools used to do it, and might not<br>
be the best title for it in meson, for instance)<br></blockquote><div><br></div><div>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.</div><div><br></div><div>-Brian</div><div><br></div></div></div>