aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorMatthias Klumpp <matthias@tenstral.net>2017-09-12 14:29:23 +0200
committerMatthias Klumpp <matthias@tenstral.net>2017-09-12 17:32:03 +0200
commit6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc (patch)
tree4f27c3d8dc22fdfdf5659f09405ed35dcc5b9e21 /mesonbuild/interpreter.py
parentd83c2894428104188cd5f75565ee7bd2b4fdcd54 (diff)
downloadmeson-6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc.zip
meson-6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc.tar.gz
meson-6cd3f066b4c4e9ffbe7c8af6a183a6ebe39925dc.tar.bz2
d: Implement specific properties for D features
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index c6cface..c72fa3f 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -756,15 +756,16 @@ class CompilerHolder(InterpreterObject):
# At time, only D compilers have this feature.
if not hasattr(self.compiler, 'get_feature_args'):
raise InterpreterException('This {} compiler has no feature arguments.'.format(self.compiler.get_display_language()))
- return self.compiler.get_feature_args(args, kwargs)
+ return self.compiler.get_feature_args(kwargs)
def unittest_args_method(self, args, kwargs):
'''
This function is deprecated and should not be used.
+ It can be removed in a future version of Meson.
'''
if not hasattr(self.compiler, 'get_feature_args'):
raise InterpreterException('This {} compiler has no feature arguments.'.format(self.compiler.get_display_language()))
- return self.compiler.get_feature_args(args, {'unittest': 'true'})
+ return self.compiler.get_feature_args({'unittest': 'true'})
def has_member_method(self, args, kwargs):
if len(args) != 2:
@@ -1258,6 +1259,9 @@ pch_kwargs = set(['c_pch', 'cpp_pch'])
lang_arg_kwargs = set(['c_args',
'cpp_args',
'd_args',
+ 'd_feature_import_dirs',
+ 'd_feature_unittest',
+ 'd_feature_versions',
'fortran_args',
'java_args',
'objc_args',