]> git.tdb.fi Git - builder.git/blobdiff - source/gnucompiler.cpp
create the tools when everything else is ready
[builder.git] / source / gnucompiler.cpp
index 8df1a72a92debc7542df10f137f76d29f1f8e18a..747d96386de501e00b49ffcd3eb2a09c2035d1aa 100644 (file)
@@ -40,7 +40,7 @@ Target *GnuCompiler::create_target(const list<Target *> &sources, const string &
 Task *GnuCompiler::run(const Target &target) const
 {
        const ObjectFile &object = dynamic_cast<const ObjectFile &>(target);
-       const Component &comp = object.get_component();
+       const Component &comp = *object.get_component();
 
        ExternalTask::Arguments argv;
        argv.push_back(executable->get_path().str());