diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2019-05-15 14:02:14 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2019-05-20 10:05:36 -0700 |
| commit | 146e97e974fe02f93e3fb20d2a1cb850255f69fc (patch) | |
| tree | 56e61ddd71b9ad9a6c5b04247ca806bd2647cec5 /mesonbuild/munstable_coredata.py | |
| parent | 5df6823bd8abb3ea920c81259a38f55cfd5fa568 (diff) | |
| download | meson-146e97e974fe02f93e3fb20d2a1cb850255f69fc.tar.gz | |
Use dependency cache
Diffstat (limited to 'mesonbuild/munstable_coredata.py')
| -rw-r--r-- | mesonbuild/munstable_coredata.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mesonbuild/munstable_coredata.py b/mesonbuild/munstable_coredata.py index f16468c41..864df0411 100644 --- a/mesonbuild/munstable_coredata.py +++ b/mesonbuild/munstable_coredata.py @@ -97,13 +97,11 @@ def run(options): print('Cached cross compilers:') dump_compilers(v) elif k == 'deps': - native = [] - cross = [] - for dep_key, dep in sorted(v.items()): - if dep_key[1]: - cross.append((dep_key, dep)) - else: - native.append((dep_key, dep)) + native = list(sorted(v.build.items())) + if v.host is not v.build: + cross = list(sorted(v.host.items())) + else: + cross = [] def print_dep(dep_key, dep): print(' ' + dep_key[0] + ": ") @@ -115,12 +113,14 @@ def run(options): if native: print('Cached native dependencies:') - for dep_key, dep in native: - print_dep(dep_key, dep) + for dep_key, deps in native: + for dep in deps: + print_dep(dep_key, dep) if cross: print('Cached dependencies:') - for dep_key, dep in cross: - print_dep(dep_key, dep) + for dep_key, deps in cross: + for dep in deps: + print_dep(dep_key, dep) else: print(k + ':') print(textwrap.indent(pprint.pformat(v), ' ')) |
