[Mesa-dev] [PATCH] docs: document Meson -Dc_args and -Dcpp_args
Brian Paul
brianp at vmware.com
Fri Mar 8 22:54:37 UTC 2019
---
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>
+
</dl>
<p>
--
1.8.5.6
More information about the mesa-dev
mailing list