i = data.insert(DataMap::value_type(key, ValueList())).first;
i->second.push_back(v);
changed = true;
+ package.get_builder().get_logger().log("cache", format("Updated key %s %s+ %s", tgt->get_name(), k, v));
}
void Cache::set_values(const Target *tgt, const string &k, const ValueList &v)
{
data[Key(tgt->get_name(), k)] = v;
changed = true;
+ package.get_builder().get_logger().log("cache", format("Updated key %s %s: %s", tgt->get_name(), k, join(v.begin(), v.end())));
}
const string &Cache::get_value(const Target *tgt, const string &k)
ValueList &values = data[key];
for(unsigned count = read_count(in); count; --count)
values.push_back(read_string(in));
+ package.get_builder().get_logger().log("cache", format("Loaded key %s %s: %s", key.first, key.second, join(values.begin(), values.end())));
}
mtime = st.get_modify_time();
else if(FS::descendant_depth(path, builder.get_prefix())>=0)
{
FS::Path relpath = FS::relative(path, builder.get_prefix());
- builder.get_logger().log("debug", format("%s %s %s", path, builder.get_prefix(), relpath));
return "<prefix>"+relpath.str().substr(1);
}