summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ModuleCache.cc3
-rw-r--r--src/module.cc8
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ModuleCache.cc b/src/ModuleCache.cc
index e974a03..70b1fb9 100644
--- a/src/ModuleCache.cc
+++ b/src/ModuleCache.cc
@@ -43,7 +43,8 @@ Module *ModuleCache::evaluate(const std::string &filename)
if (this->entries.find(filename) != this->entries.end() &&
this->entries[filename].cache_id == cache_id) {
#ifdef DEBUG
- PRINTB("Using cached library: %s (%s)", filename % cache_id);
+// Causes too much debug output
+// PRINTB("Using cached library: %s (%s)", filename % cache_id);
#endif
lib_mod = &(*this->entries[filename].module);
diff --git a/src/module.cc b/src/module.cc
index 69623dd..fc849ff 100644
--- a/src/module.cc
+++ b/src/module.cc
@@ -225,8 +225,12 @@ bool Module::handleDependencies()
Module::ModuleContainer::iterator curr = iter++;
Module *oldmodule = curr->second;
curr->second = ModuleCache::instance()->evaluate(curr->first);
- if (curr->second != oldmodule) changed = true;
- PRINTB_NOCACHE(" %s: %p", curr->first % curr->second);
+ if (curr->second != oldmodule) {
+ changed = true;
+#ifdef DEBUG
+ PRINTB_NOCACHE(" %s: %p", curr->first % curr->second);
+#endif
+ }
if (!curr->second) {
PRINTB_NOCACHE("WARNING: Failed to compile library '%s'.", curr->first);
this->usedlibs.erase(curr);
contact: Jan Huwald // Impressum