From c5e85e59cc2b16edb094fa598fb1a096cd0db4d5 Mon Sep 17 00:00:00 2001 From: Salamandar Date: Thu, 31 May 2018 11:53:40 +0200 Subject: Add 0.47.0 features --- mesonbuild/interpreter.py | 3 +++ mesonbuild/interpreterbase.py | 1 + 2 files changed, 4 insertions(+) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 24a0a29..79b66c1 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1241,6 +1241,7 @@ class CompilerHolder(InterpreterObject): mlog.log('Checking if "', mlog.bold(testname), '" links: ', h, sep='') return result + @FeatureNew('check_header', '0.47.0') @permittedKwargs({ 'prefix', 'no_builtin_args', @@ -2009,6 +2010,7 @@ external dependencies (including libraries) must go to "dependencies".''') if not isinstance(actual, wanted): raise InvalidArguments('Incorrect argument type.') + @FeatureNewKwargs('run_command', '0.47.0', ['check']) @permittedKwargs(permitted_kwargs['run_command']) def func_run_command(self, node, args, kwargs): return self.run_command_impl(node, args, kwargs) @@ -3199,6 +3201,7 @@ root and issuing %s. self.build.install_dirs.append(idir) return idir + @FeatureNewKwargs('configure_file', '0.47.0', ['copy']) @FeatureNewKwargs('configure_file', '0.46.0', ['format']) @FeatureNewKwargs('configure_file', '0.41.0', ['capture']) @permittedKwargs(permitted_kwargs['configure_file']) diff --git a/mesonbuild/interpreterbase.py b/mesonbuild/interpreterbase.py index f80d46a..38e07f2 100644 --- a/mesonbuild/interpreterbase.py +++ b/mesonbuild/interpreterbase.py @@ -405,6 +405,7 @@ class InterpreterBase: raise InvalidCode('Keyword arguments are invalid in array construction.') return arguments + @FeatureNew('dict', '0.47.0') def evaluate_dictstatement(self, cur): (arguments, kwargs) = self.reduce_arguments(cur.args) assert (not arguments) -- cgit v1.1