/* $Id$
This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
changed(false)
{ }
+void DependencyCache::set_deps(const string &tgt, const StringList &d)
+{
+ deps[tgt]=d;
+ changed=true;
+}
+
const StringList &DependencyCache::get_deps(const string &tgt) const
{
DepsMap::const_iterator i=deps.find(tgt);
return i->second;
}
-void DependencyCache::set_deps(const string &tgt, const StringList &d)
-{
- deps[tgt]=d;
- changed=true;
-}
-
-/**
-Saves the depencency cache. If there are no cached dependencies or they
-haven't been changed, does nothing.
-*/
void DependencyCache::save() const
{
if(deps.empty() || !changed || package.get_builder().get_dry_run())