diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-27 22:28:29 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-06-06 00:25:57 (GMT) |
commit | 362d689305053b64c299f59df2f098c9b72a1bb0 (patch) | |
tree | 51723a8a75b79ea6efbd0c4b4221e8563992c222 /src/module.cc | |
parent | d320a8528440f340dc182597cd519f9976de7e0d (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.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/module.cc b/src/module.cc index cc0f99c..727ac3b 100644 --- a/src/module.cc +++ b/src/module.cc @@ -247,9 +247,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); } @@ -261,7 +263,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); } } |