X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectfile.cpp;h=22f11faca352369bddce0804ae68da948e85d8b0;hb=a5b439969c06a4794a3914580a29256773f24778;hp=7db1b2d647939ac6456d48a0b8f12954ba56718c;hpb=f0c501af5d99233efd3a45076ffbe69a71294863;p=builder.git diff --git a/source/objectfile.cpp b/source/objectfile.cpp index 7db1b2d..22f11fa 100644 --- a/source/objectfile.cpp +++ b/source/objectfile.cpp @@ -11,9 +11,9 @@ using namespace Msp; ObjectFile::ObjectFile(Builder &b, const Component &c, SourceFile &s): FileTarget(b, &c.get_package(), generate_target_path(c, FS::relative(s.get_path(), c.get_package().get_source()).str())), - comp(c), source(s) { + component = &c; add_depend(&source); }