aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-11-07 15:24:41 -0500
committerXavier Claessens <xavier.claessens@collabora.com>2022-12-07 11:59:07 -0500
commit09cbc53f57f63709c952333fe7d7950926dff7b7 (patch)
treee6f2a6157215178f865194021ed291586b354aa6
parent2dbe976278b66e97bf600b3885d8eda4874f03cf (diff)
downloadmeson-09cbc53f57f63709c952333fe7d7950926dff7b7.zip
meson-09cbc53f57f63709c952333fe7d7950926dff7b7.tar.gz
meson-09cbc53f57f63709c952333fe7d7950926dff7b7.tar.bz2
devenv: Document recent changes
-rw-r--r--docs/markdown/Commands.md2
-rw-r--r--docs/markdown/snippets/devenv.md15
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/Commands.md b/docs/markdown/Commands.md
index c328461..4a00c4f 100644
--- a/docs/markdown/Commands.md
+++ b/docs/markdown/Commands.md
@@ -345,6 +345,8 @@ These variables are set in environment in addition to those set using [[meson.ad
schemas is compiled. This is automatically set when using `gnome.compile_schemas()`.
Note that this requires GLib >= 2.64 when `gnome.compile_schemas()` is used in
more than one directory.
+- `QEMU_LD_PREFIX` *Since 1.0.0* is set to the `sys_root` value from cross file
+ when cross compiling and that property is defined.
Since *Since 0.62.0* if bash-completion scripts are being installed and the
shell is bash, they will be automatically sourced.
diff --git a/docs/markdown/snippets/devenv.md b/docs/markdown/snippets/devenv.md
new file mode 100644
index 0000000..d8a38ba
--- /dev/null
+++ b/docs/markdown/snippets/devenv.md
@@ -0,0 +1,15 @@
+## Developer environment improvements
+
+When cross compiling, the developer environment now sets all environment
+variables for the HOST machine. It now also sets `QEMU_LD_PREFIX` to the
+`sys_root` value from cross file if property is defined. That means that cross
+compiled executables can often be run transparently on the build machine, for
+example when cross compiling for aarch64 linux from x86_64 linux.
+
+A new argument `--workdir` has been added, by default it is set to build
+directory. For example, `meson devenv -C builddir --workdir .` can be used to
+remain in the current dir (often source dir) instead.
+
+`--dump` now prints shell commands like `FOO="/prepend/path:$FOO:/append/path"`,
+using the litteral `$FOO` instead of current value of `FOO` from environment.
+This makes easier to evaluate those expressions in a different environment.