]> git.tdb.fi Git - builder.git/blobdiff - source/gnucompiler.cpp
Early check for file existence to avoid exception handling
[builder.git] / source / gnucompiler.cpp
index 4fa293b1b650153024e5601d86043e62115e9591..189e5148285c827015aaf203c2891a00ece39047 100644 (file)
@@ -17,11 +17,6 @@ GnuCompiler::GnuCompiler(Builder &b, const string &t, const string &n):
        name(n)
 { }
 
-Target *GnuCompiler::create_source(const Component &comp, const FS::Path &path) const
-{
-       return new SourceFile(builder, comp, path);
-}
-
 Target *GnuCompiler::create_target(const list<Target *> &sources, const std::string &) const
 {
        if(sources.size()!=1)
@@ -37,7 +32,7 @@ Task *GnuCompiler::run(const Target &target) const
        const ObjectFile &object = dynamic_cast<const ObjectFile &>(target);
        const Component &comp = object.get_component();
 
-       vector<string> argv;
+       ExternalTask::Arguments argv;
        argv.push_back(name);
        argv.push_back("-c");