diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-05 20:07:21 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-06 21:16:08 +0200 |
commit | 326f3e8646e66534eb1cdaf776bd7db017e1311b (patch) | |
tree | 71bdd3781768581d4eb0b3168e8b1c56cec42580 /mesonbuild/interpreter.py | |
parent | aba8792b6657e3aa380586764a8b3ec567895a28 (diff) | |
download | meson-fs.tar.gz |
Created the filesystem module.fs
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index cd38d40bb..210f3c4cd 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1689,7 +1689,7 @@ class CompilerHolder(InterpreterObject): ModuleState = namedtuple('ModuleState', [ - 'build_to_src', 'subproject', 'subdir', 'current_lineno', 'environment', + 'source_root', 'build_to_src', 'subproject', 'subdir', 'current_lineno', 'environment', 'project_name', 'project_version', 'backend', 'targets', 'data', 'headers', 'man', 'global_args', 'project_args', 'build_machine', 'host_machine', 'target_machine', 'current_node']) @@ -1714,6 +1714,7 @@ class ModuleHolder(InterpreterObject, ObjectHolder): # because the Build object contains dicts and lists. num_targets = len(self.interpreter.build.targets) state = ModuleState( + source_root = self.interpreter.environment.get_source_dir(), build_to_src=mesonlib.relpath(self.interpreter.environment.get_source_dir(), self.interpreter.environment.get_build_dir()), subproject=self.interpreter.subproject, |