]> git.tdb.fi Git - builder.git/blobdiff - source/gnuarchiver.cpp
Move the Component reference to Target and make it a pointer
[builder.git] / source / gnuarchiver.cpp
index 3f56a2ea4e246e701bd4b18ade03104c4d797f3b..d75c627519694b03207847d3b0c671324c042546 100644 (file)
@@ -42,7 +42,7 @@ Target *GnuArchiver::create_target(const list<Target *> &sources, const string &
 Task *GnuArchiver::run(const Target &target) const
 {
        const StaticLibrary &lib = dynamic_cast<const StaticLibrary &>(target);
-       const Component &comp = lib.get_component();
+       const Component &comp = *lib.get_component();
 
        vector<string> argv;
        argv.push_back("ar");