]> git.tdb.fi Git - builder.git/blobdiff - source/copy.cpp
Delay locating tool executables until the tool is needed
[builder.git] / source / copy.cpp
index 75d047df7ef50c6371835f456a747f2c34b6121a..24be942532b83ab52a0dcfdeb8446ad29d708edf 100644 (file)
@@ -16,7 +16,7 @@ Copy::Copy(Builder &b):
        Tool(b, "CP")
 { }
 
-Target *Copy::create_target(const list<Target *> &sources, const string &arg) const
+Target *Copy::create_target(const list<Target *> &sources, const string &arg)
 {
        FileTarget &file_tgt = dynamic_cast<FileTarget &>(*sources.front());
        InstalledFile *inst = new InstalledFile(builder, *file_tgt.get_package(), file_tgt, arg);