diff options
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 99a2916..bc162ac 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2505,6 +2505,8 @@ class Interpreter(InterpreterBase): return ExternalProgramHolder(item, self.subproject) elif hasattr(item, 'held_object'): return item + elif isinstance(item, InterpreterObject): + return item else: raise InterpreterException('Module returned a value of unknown type.') @@ -2530,6 +2532,8 @@ class Interpreter(InterpreterBase): # FIXME: This is special cased and not ideal: # The first source is our new VapiTarget, the rest are deps self.process_new_values(v.sources[0]) + elif isinstance(v, InstallDir): + self.build.install_dirs.append(v) elif hasattr(v, 'held_object'): pass elif isinstance(v, (int, str, bool, Disabler)): |