aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-03-24 09:56:45 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-06-01 22:49:10 -0400
commit2e5a2f6a489925d18a879de2b4c8a7c45f403031 (patch)
tree3a7bd8c65eb21067310831c87149521123061b6a /mesonbuild/interpreter
parent618b187f70f9267eaf5112373aa9925b38f44da0 (diff)
downloadmeson-2e5a2f6a489925d18a879de2b4c8a7c45f403031.zip
meson-2e5a2f6a489925d18a879de2b4c8a7c45f403031.tar.gz
meson-2e5a2f6a489925d18a879de2b4c8a7c45f403031.tar.bz2
interpreter: add location to a FeatureNew call
Diffstat (limited to 'mesonbuild/interpreter')
-rw-r--r--mesonbuild/interpreter/interpreter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 11eb816..95d3b95 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -1744,8 +1744,9 @@ class Interpreter(InterpreterBase, HoldableObject):
elif target_type == 'shared_library':
return self.build_target(node, args, kwargs, build.SharedLibrary)
elif target_type == 'shared_module':
- FeatureNew('build_target(target_type: \'shared_module\')',
- '0.51.0').use(self.subproject)
+ FeatureNew.single_use(
+ 'build_target(target_type: \'shared_module\')',
+ '0.51.0', self.subproject, location=node)
return self.build_target(node, args, kwargs, build.SharedModule)
elif target_type == 'static_library':
return self.build_target(node, args, kwargs, build.StaticLibrary)