diff --git a/docs/meson.html b/docs/meson.html index 21e15ad1c1d..63c106147d1 100644 --- a/docs/meson.html +++ b/docs/meson.html @@ -110,14 +110,14 @@ to invoke non-default targets for ninja to update them:
Environment Variables

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 during the initial configuration. +changing the default compiler. Meson does support CFLAGS, CXXFLAGS, etc. But +their use is discouraged because of the many caveats in using them. Instead it +is recomended to use -D${lang}_args and +-D${lang}_link_args instead. Among the benefits of these options +is that they are guaranteed to persist across rebuilds and reconfigurations. -These arguments are consumed and stored by meson when it is initialized. To -change these flags after the build is initialized (or when doing a first -initialization), consider using -D${lang}_args and --D${lang}_link_args instead. Meson will never change compiler in a -configured build directory. +Meson does not allow changing compiler in a configured builddir, you will need +to create a new build dir for a different compiler.