aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-12-27 19:10:45 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-12-27 19:10:45 +0200
commitd71f51d2202cb4a5180fe51734d9df3fa7f21d31 (patch)
tree3b352ef098be25286572da06b8ef1a07845efe87
parentaa1fc44aca860660f27a69c466cd626027c0b2d0 (diff)
downloadmeson-d71f51d2202cb4a5180fe51734d9df3fa7f21d31.zip
meson-d71f51d2202cb4a5180fe51734d9df3fa7f21d31.tar.gz
meson-d71f51d2202cb4a5180fe51734d9df3fa7f21d31.tar.bz2
Use set_value to preserve option invariants.
-rw-r--r--interpreter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py
index 95d9a45..f7853ee 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -1333,7 +1333,6 @@ class Interpreter():
newoptions = [option] + self.environment.cmd_line_options.projectoptions
self.environment.cmd_line_options.projectoptions = newoptions
-
@stringArgs
def func_project(self, node, args, kwargs):
if len(args) < 2:
@@ -1463,7 +1462,7 @@ class Interpreter():
for cmd_arg in self.environment.cmd_line_options.projectoptions:
if cmd_arg.startswith(cmd_prefix):
value = cmd_arg.split('=', 1)[1]
- new_options[i].value = value
+ new_options[i].set_value(value)
new_options.update(self.coredata.compiler_options)
self.coredata.compiler_options = new_options
mlog.log('Native %s compiler: ' % lang, mlog.bold(' '.join(comp.get_exelist())), ' (%s %s)' % (comp.id, comp.version), sep='')