aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-11-14 21:15:30 -0500
committerEli Schwartz <eschwartz@archlinux.org>2021-11-20 20:48:30 -0500
commit32821be623d4cc0ea0136b8e0918f50647d6b50b (patch)
tree250e02166420dcea919ba5f18b6f13bae1f67bef /mesonbuild/interpreter/interpreter.py
parent8dbb0ee476493d3059a5b4a4db61fbc3bd162bef (diff)
downloadmeson-32821be623d4cc0ea0136b8e0918f50647d6b50b.zip
meson-32821be623d4cc0ea0136b8e0918f50647d6b50b.tar.gz
meson-32821be623d4cc0ea0136b8e0918f50647d6b50b.tar.bz2
add location nodes to some Feature calls
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index fcf6614..d946678 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -1723,7 +1723,7 @@ external dependencies (including libraries) must go to "dependencies".''')
# they could need substitutions (e.g. @BASENAME@) first. CustomTarget()
# will take care of setting a proper default but name must be an empty
# string in the meantime.
- FeatureNew('custom_target() with no name argument', '0.60.0').use(self.subproject)
+ FeatureNew('custom_target() with no name argument', '0.60.0', location=node).use(self.subproject)
name = ''
kwargs['install_mode'] = self._get_kwarg_install_mode(kwargs)
if 'input' in kwargs:
@@ -2240,7 +2240,7 @@ This will become a hard error in the future.''', location=self.current_node)
if idir is False:
idir = ''
FeatureDeprecated.single_use('configure_file install_dir: false', '0.50.0',
- self.subproject, 'Use the `install:` kwarg instead')
+ self.subproject, 'Use the `install:` kwarg instead', location=node)
if not isinstance(idir, str):
if isinstance(idir, list) and len(idir) == 0:
mlog.deprecation('install_dir: kwarg must be a string and not an empty array. '