X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcefile.cpp;h=718a09c48541152d3c15f484b5048ce81017f94e;hb=654de39b62a9a58fd8e1b5a557361d628345788b;hp=57866aa274565c3b088f285abb1b2c234223f8bf;hpb=8bc8db44c47cd2906c57dccbfb589e41eff7f694;p=builder.git diff --git a/source/sourcefile.cpp b/source/sourcefile.cpp index 57866aa..718a09c 100644 --- a/source/sourcefile.cpp +++ b/source/sourcefile.cpp @@ -9,8 +9,8 @@ Distributed under the LGPL #include #include "builder.h" #include "component.h" -#include "package.h" #include "sourcefile.h" +#include "sourcepackage.h" using namespace std; using namespace Msp; @@ -26,6 +26,9 @@ from Builder. */ void SourceFile::find_depends() { + if(!comp) + return; + DependencyCache &deps_cache=comp->get_package().get_deps_cache(); if(mtime>deps_cache.get_mtime()) {