]> git.tdb.fi Git - builder.git/commitdiff
Some additional log statements
authorMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 14:14:58 +0000 (17:14 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:54 +0000 (00:08 +0300)
source/gnucxxcompiler.cpp
source/target.cpp

index 3e0a4b87fae698ca248c345db05360c9bb306e07..cadd21f026989df463412668a672b182d188bf5c 100644 (file)
@@ -1,6 +1,7 @@
 #include <msp/fs/stat.h>
 #include <msp/io/print.h>
 #include <msp/strings/regex.h>
+#include <msp/strings/utils.h>
 #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);
index 1aab4b1fdef5a2f16fc04d4a674a0b5efb043a71..7646ee4555949f0240d0287ea0a1fff9c54f272a 100644 (file)
@@ -1,5 +1,6 @@
 #include <msp/fs/stat.h>
 #include <msp/fs/utils.h>
+#include <msp/strings/format.h>
 #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*/)