aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Claesson <nicke.claesson@gmail.com>2017-12-22 01:28:27 +0100
committerNiklas Claesson <nicke.claesson@gmail.com>2017-12-22 01:44:56 +0100
commit7f4f082d69bdb05ae148f81fde2d7c66897e8eb7 (patch)
tree0ee656fbe49227dbca7df75911b97af9a1600703
parentba161d42ee238d4b2ddbb95682dae32a7f2f809e (diff)
downloadmeson-7f4f082d69bdb05ae148f81fde2d7c66897e8eb7.zip
meson-7f4f082d69bdb05ae148f81fde2d7c66897e8eb7.tar.gz
meson-7f4f082d69bdb05ae148f81fde2d7c66897e8eb7.tar.bz2
Print 'cached' if dependency is found in cache
-rw-r--r--mesonbuild/interpreter.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 71552a2..f079079 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2131,6 +2131,8 @@ to directly access options of other subprojects.''')
# Check if we've already searched for and found this dep
if identifier in self.coredata.deps:
cached_dep = self.coredata.deps[identifier]
+ mlog.log('Cached dependency', mlog.bold(name),
+ 'found:', mlog.green('YES'))
else:
# Check if exactly the same dep with different version requirements
# was found already.
@@ -2183,6 +2185,9 @@ to directly access options of other subprojects.''')
m = 'Version {} of {} already loaded, requested incompatible version {}'
raise DependencyException(m.format(found, dirname, wanted))
elif valid_version:
+ mlog.log('Found a', mlog.green('(cached)'), 'subproject',
+ mlog.bold(os.path.join(self.subproject_dir, dirname)), 'for',
+ mlog.bold(name))
subproject = self.subprojects[dirname]
try:
# Never add fallback deps to self.coredata.deps