aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-05-25 10:07:36 +0200
committerXavier Claessens <xclaesse@gmail.com>2020-05-26 13:48:26 -0400
commit534b340a56419b9e5b892eef9d8b3fa3bb647afe (patch)
tree478b49af5de7fe6d05610954a7d68ac02b0a5ac9
parent7e8f1de063eea43bd9ff390e1573bd7ff475db54 (diff)
downloadmeson-534b340a56419b9e5b892eef9d8b3fa3bb647afe.zip
meson-534b340a56419b9e5b892eef9d8b3fa3bb647afe.tar.gz
meson-534b340a56419b9e5b892eef9d8b3fa3bb647afe.tar.bz2
opts: Add FeatureNew for '-' and 'not' introduced in 0.54.1
-rw-r--r--mesonbuild/optinterpreter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py
index 81206ab..d47a3d2 100644
--- a/mesonbuild/optinterpreter.py
+++ b/mesonbuild/optinterpreter.py
@@ -171,11 +171,13 @@ class OptionInterpreter:
res = self.reduce_single(arg.value)
if not isinstance(res, (int, float)):
raise OptionException('Token after "-" is not a number')
+ FeatureNew.single_use('negative numbers in meson_options.txt', '0.54.1', self.subproject)
return -res
elif isinstance(arg, mparser.NotNode):
res = self.reduce_single(arg.value)
if not isinstance(res, bool):
raise OptionException('Token after "not" is not a a boolean')
+ FeatureNew.single_use('negation ("not") in meson_options.txt', '0.54.1', self.subproject)
return not res
elif isinstance(arg, mparser.ArithmeticNode):
l = self.reduce_single(arg.left)