From 25376a637c584fc9d491bb6a40c4c483341418b0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 11 May 2012 00:15:35 +0300 Subject: [PATCH] Don't try to unlink nonexistent files --- source/builder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/builder.cpp b/source/builder.cpp index 69bd607..9fdb8ee 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -648,7 +648,8 @@ int Builder::do_clean() for(set::iterator i=clean_tgts.begin(); i!=clean_tgts.end(); ++i) if(FileTarget *ft = dynamic_cast(*i)) - unlink(ft->get_path()); + if(ft->get_mtime()) + FS::unlink(ft->get_path()); return 0; } -- 2.45.2