diff options
| -rw-r--r-- | mesonbuild/interpreter/interpreter.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index ac298d564..04de6fc6b 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -1095,13 +1095,10 @@ class Interpreter(InterpreterBase, HoldableObject): if not value: return 'none' return ','.join(sorted(value)) - elif isinstance(value_object, options.UserOption): - if isinstance(value_object.value, str): - return P_OBJ.OptionString(value, f'{{{optname}}}') - return value - ocopy = copy.copy(value_object) - ocopy.value = value - return ocopy + + if isinstance(value_object.value, str): + return P_OBJ.OptionString(value, f'{{{optname}}}') + return value @typed_pos_args('configuration_data', optargs=[dict]) @noKwargs |
