aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/mesonmain.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-01-25 21:35:26 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-01-27 22:11:48 -0500
commitd9f55d774c6df52a8536114535d305841e96f105 (patch)
treeea9a5d32f35197fcb4ea5a405ceebd3c95de34e3 /mesonbuild/interpreter/mesonmain.py
parent1913a4246c6a0c0204e29e4957cafa937b251d01 (diff)
downloadmeson-d9f55d774c6df52a8536114535d305841e96f105.zip
meson-d9f55d774c6df52a8536114535d305841e96f105.tar.gz
meson-d9f55d774c6df52a8536114535d305841e96f105.tar.bz2
add location data to various Feature checks
Diffstat (limited to 'mesonbuild/interpreter/mesonmain.py')
-rw-r--r--mesonbuild/interpreter/mesonmain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/interpreter/mesonmain.py b/mesonbuild/interpreter/mesonmain.py
index be1acc6..74b5978 100644
--- a/mesonbuild/interpreter/mesonmain.py
+++ b/mesonbuild/interpreter/mesonmain.py
@@ -133,7 +133,7 @@ class MesonMain(MesonInterpreterObject):
FeatureNew.single_use(
f'Calling "{name}" with File, CustomTarget, Index of CustomTarget, '
'Executable, or ExternalProgram',
- '0.55.0', self.interpreter.subproject)
+ '0.55.0', self.interpreter.subproject, location=self.current_node)
return script_args
@typed_pos_args(
@@ -185,10 +185,10 @@ class MesonMain(MesonInterpreterObject):
kwargs: 'TYPE_kwargs') -> None:
if args[1]:
FeatureNew.single_use('Calling "add_dist_script" with multiple arguments',
- '0.49.0', self.interpreter.subproject)
+ '0.49.0', self.interpreter.subproject, location=self.current_node)
if self.interpreter.subproject != '':
FeatureNew.single_use('Calling "add_dist_script" in a subproject',
- '0.58.0', self.interpreter.subproject)
+ '0.58.0', self.interpreter.subproject, location=self.current_node)
script_args = self._process_script_args('add_dist_script', args[1])
script = self._find_source_script('add_dist_script', args[0], script_args)
self.build.dist_scripts.append(script)