From: Mikko Rasa Date: Sun, 8 Jul 2012 14:14:58 +0000 (+0300) Subject: Some additional log statements X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=37ba195304d671390d3e11ebe1bf4c3b2298841b;p=builder.git Some additional log statements --- diff --git a/source/gnucxxcompiler.cpp b/source/gnucxxcompiler.cpp index 3e0a4b8..cadd21f 100644 --- a/source/gnucxxcompiler.cpp +++ b/source/gnucxxcompiler.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "builder.h" #include "csourcefile.h" #include "externaltask.h" @@ -19,6 +20,7 @@ GnuCxxCompiler::GnuCxxCompiler(Builder &b): ExternalTask::Arguments argv; argv.push_back(name); argv.push_back("--version"); + builder.get_logger().log("auxcommands", format("Running %s", join(argv.begin(), argv.end()))); ExternalTask task(argv); task.set_stdout(ExternalTask::CAPTURE); task.set_stderr(ExternalTask::IGNORE); diff --git a/source/target.cpp b/source/target.cpp index 1aab4b1..7646ee4 100644 --- a/source/target.cpp +++ b/source/target.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "builder.h" #include "filetarget.h" #include "package.h" @@ -111,6 +112,8 @@ void Target::mark_rebuild(const std::string &reason) state = REBUILD; rebuild_reason = reason; signal_bubble_rebuild.emit(); + + builder.get_logger().log("rebuild", format("Rebuilding %s: %s", name, reason)); } void Target::build_finished(bool /*success*/)