X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.cpp;h=b42580a099a0a95eb411bc34fa65345cd72a2b03;hb=483add89e7f305642cc88a5f63a7741a15b6290e;hp=af63c237a2a0e849b8fe403bb0edb2ed3a772425;hpb=4cc08a580ddcdc025d2ca23c336e76c11414d8e0;p=builder.git diff --git a/source/filetarget.cpp b/source/filetarget.cpp index af63c23..b42580a 100644 --- a/source/filetarget.cpp +++ b/source/filetarget.cpp @@ -102,11 +102,14 @@ void FileTarget::check_rebuild() if(package->get_config().get_mtime()>mtime) mark_rebuild("Package options changed"); - string build_sig = create_build_signature(); - if(package->get_cache().has_key(this, "build_sig")) + if(tool->get_executable()) { - if(package->get_cache().get_value(this, "build_sig")!=build_sig) - mark_rebuild("Build signature changed"); + string build_sig = create_build_signature(); + if(package->get_cache().has_key(this, "build_sig")) + { + if(package->get_cache().get_value(this, "build_sig")!=build_sig) + mark_rebuild("Build signature changed"); + } } } }