[Mesa-dev] [Bug 107313] Meson instructions on web site are non-optimal

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 20 19:08:48 UTC 2018


--- Comment #1 from Dylan Baker <baker.dylan.c at gmail.com> ---
The whole quote is:

Meson supports the standard CC and CXX environment variables for changing the
default compiler, and CFLAGS, CXXFLAGS, and LDFLAGS for setting options to the
compiler and linker. The default compilers depends on your operating system.
Meson supports most of the popular compilers, a complete list is available
here. These arguments are consumed and stored by meson when it is initialized
or re-initialized. Therefore passing them to meson configure will not do
anything, and passing them to ninja will only do something if ninja decides to
re-initialize meson, for example, if a meson.build file has been changed.
Changing these variables will not cause all targets to be rebuilt, so running
ninja clean is recommended when changing CFLAGS or CXXFLAGS. Meson will never
change compiler in a configured build directory. 

Unless something has changed meson does not honor changes to the CFLAGS or
CXXFLAGS variables because it treats them as default arguments.

Run this:
CXXFLAGS=-Wall meson build
ninja -C build
ninja -C build
> ninja: Entering directory `build'
> ninja: no work to do.

My understanding was that this behavior was intentional, if it's not I'll file
a bug.

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180720/95b057e2/attachment.html>

More information about the mesa-dev mailing list