diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-09-23 12:14:32 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2020-09-23 12:14:32 -0400 |
commit | 55ea461993db23c8a68053a5f499fda7f65df9b6 (patch) | |
tree | 8d20233f2d1442fc223be4854bd8cbc460a4e43b /mesonbuild | |
parent | 8fa0548e080dd006821ff985868fdef789935feb (diff) | |
download | meson-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 'mesonbuild')
-rw-r--r-- | mesonbuild/interpreter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 3af5b51..7df5571 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2061,11 +2061,13 @@ class MesonMain(InterpreterObject): @noPosargs @permittedKwargs({}) + @FeatureDeprecated('meson.source_root', '0.56.0', 'use meson.current_source_dir instead.') def source_root_method(self, args, kwargs): return self.interpreter.environment.source_dir @noPosargs @permittedKwargs({}) + @FeatureDeprecated('meson.build_root', '0.56.0', 'use meson.current_build_dir instead.') def build_root_method(self, args, kwargs): return self.interpreter.environment.build_dir |