From 37ba195304d671390d3e11ebe1bf4c3b2298841b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 8 Jul 2012 17:14:58 +0300 Subject: [PATCH] Some additional log statements --- source/gnucxxcompiler.cpp | 2 ++ source/target.cpp | 3 +++ 2 files changed, 5 insertions(+) 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*/) -- 2.45.2