aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-09-23 12:14:32 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-09-23 12:14:32 -0400
commit55ea461993db23c8a68053a5f499fda7f65df9b6 (patch)
tree8d20233f2d1442fc223be4854bd8cbc460a4e43b /docs/markdown/snippets
parent8fa0548e080dd006821ff985868fdef789935feb (diff)
downloadmeson-55ea461993db23c8a68053a5f499fda7f65df9b6.zip
meson-55ea461993db23c8a68053a5f499fda7f65df9b6.tar.gz
meson-55ea461993db23c8a68053a5f499fda7f65df9b6.tar.bz2
Deprecate meson.build_root() and meson.source_root()
Those function are common source of issue when used in a subproject because they point to the parent project root which is rarely what is expected and is a violation of subproject isolation.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/deprecate_source_build_root.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/deprecate_source_build_root.md b/docs/markdown/snippets/deprecate_source_build_root.md
new file mode 100644
index 0000000..05b6b91
--- /dev/null
+++ b/docs/markdown/snippets/deprecate_source_build_root.md
@@ -0,0 +1,5 @@
+## `meson.build_root()` and `meson.source_root()` are deprecated
+
+Those function are common source of issue when used in a subproject because they
+point to the parent project root which is rarely what is expected and is a
+violation of subproject isolation.