aboutsummaryrefslogtreecommitdiff
path: root/build/dump.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/dump.cxx')
-rw-r--r--build/dump.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/build/dump.cxx b/build/dump.cxx
index 4294e92..98b0ff2 100644
--- a/build/dump.cxx
+++ b/build/dump.cxx
@@ -9,6 +9,7 @@
#include <iostream>
#include <build/scope>
+#include <build/target>
#include <build/variable>
#include <build/diagnostics>
@@ -16,6 +17,28 @@ using namespace std;
namespace build
{
+ void
+ dump ()
+ {
+ cout << endl;
+
+ for (const auto& pt: targets)
+ {
+ target& t (*pt);
+
+ cout << t << ':';
+
+ for (const auto& p: t.prerequisites)
+ {
+ cout << ' ' << p;
+ }
+
+ cout << endl;
+ }
+
+ cout << endl;
+ }
+
static void
dump_scope (scope& p, scope_map::iterator& i, string& ind)
{