From: Eric Engestrom
Environment Variables
Meson supports the standard CC and CXX envrionment variables for +
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. @@ -99,9 +99,9 @@ the popular compilers, a complete list is available 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-initialze meson, for example, if a meson.build file has been changed. +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 recomended when changing CFLAGS or CXXFLAGS. meson will never +ninja clean is recommended when changing CFLAGS or CXXFLAGS. Meson will never change compiler in a configured build directory.
@@ -120,7 +120,7 @@ change compiler in a configured build directory.LLVM
Meson includes upstream logic to wrap llvm-config using it's standard
-dependncy interface. It will search $PATH (or %PATH% on windows) for
+dependency interface. It will search $PATH (or %PATH% on windows) for
llvm-config, so using an LLVM from a non-standard path is as easy as
PATH=/path/with/llvm-config:$PATH meson build
.
Note that in meson this defaults to "debugoptimized", and not setting it to "release" will yield non-optimal performance and binary size. Not using "debug" -may interfer with debbugging as some code and validation will be optimized +may interfere with debugging as some code and validation will be optimized away.