]> git.tdb.fi Git - builder.git/blobdiff - source/builder.cpp
Print out the commands at the appropriate verbosity level
[builder.git] / source / builder.cpp
index 9dfa2e693fdeb8ff27afcb0cd7383f381b3da1ec..db46e5b7edf0345e67894871d3b0d0d3f7be697e 100644 (file)
@@ -585,8 +585,18 @@ int Builder::do_build()
                                Task *task = tgt->build();
                                if(task)
                                {
-                                       task->start();
-                                       tasks.push_back(task);
+                                       if(verbose>=2)
+                                               IO::print("%s\n", task->get_command());
+                                       if(dry_run)
+                                       {
+                                               task->signal_finished.emit(true);
+                                               delete task;
+                                       }
+                                       else
+                                       {
+                                               task->start();
+                                               tasks.push_back(task);
+                                       }
                                }
 
                                if(show_progress)