/// Changes the mtime of the target to the current time.
void touch();
+ FileTarget *get_real_target() override { return this; }
+
protected:
void check_rebuild() override;
builder.get_vfs().register_path(link, this);
}
-Target *InstalledFile::get_real_target()
+FileTarget *InstalledFile::get_real_target()
{
return source.get_real_target();
}
const Msp::FS::Path &get_symlink() const { return link; }
- Target *get_real_target() override;
+ FileTarget *get_real_target() override;
private:
void check_rebuild() override;
{
tgt.prepare();
- FileTarget *rtgt = dynamic_cast<FileTarget *>(tgt.get_real_target());
+ FileTarget *rtgt = tgt.get_real_target();
Dependencies deps_to_add = rtgt->get_transitive_dependencies();
if(rtgt!=&tgt)
{