summaryrefslogtreecommitdiff
path: root/src/module.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-27 22:28:29 (GMT)
committerMarius Kintel <marius@kintel.net>2013-05-27 22:28:29 (GMT)
commit4bc18dc6802906738eb9f0d75ea063f271a0c9b7 (patch)
tree1940911c3b43af1d290abd7fc2e8f65b706d783c /src/module.cc
parent84e918da7d35ba7e4a74951e803f5aa9bf24bb07 (diff)
Don't auto-reload missing files, reduce warning output from periodically called functions
Diffstat (limited to 'src/module.cc')
-rw-r--r--src/module.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/module.cc b/src/module.cc
index 425403b..080a3dd 100644
--- a/src/module.cc
+++ b/src/module.cc
@@ -228,9 +228,11 @@ bool FileModule::handleDependencies()
FileModule::ModuleContainer::iterator curr = iter++;
FileModule *oldmodule = curr->second;
+ bool wasmissing = false;
// Get an absolute filename for the module
std::string filename = curr->first;
if (!boosty::is_absolute(filename)) {
+ wasmissing = true;
fs::path fullpath = find_valid_path(this->path, filename);
if (!fullpath.empty()) filename = boosty::stringy(fullpath);
}
@@ -242,7 +244,7 @@ bool FileModule::handleDependencies()
PRINTB_NOCACHE(" %s: %p", filename % curr->second);
#endif
}
- if (!curr->second) {
+ if (!curr->second && !wasmissing) {
PRINTB_NOCACHE("WARNING: Failed to compile library '%s'.", filename);
}
}
contact: Jan Huwald // Impressum