aboutsummaryrefslogtreecommitdiff
path: root/build2/dump.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-01 13:00:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-01 13:00:16 +0200
commiteacf7f7ccd40a56d1fe761d3d30ced6c6acd58da (patch)
tree841a87d57720704654e8e8fa94cecd05c17b6cfa /build2/dump.hxx
parent8ba507252cb932023d16e5d4dfef267c039feb78 (diff)
Add support for rule-specific variables, use to fix cc.type data race
Diffstat (limited to 'build2/dump.hxx')
-rw-r--r--build2/dump.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/dump.hxx b/build2/dump.hxx
index 74ecbe7..e9a3b30 100644
--- a/build2/dump.hxx
+++ b/build2/dump.hxx
@@ -8,15 +8,19 @@
#include <build2/types.hxx>
#include <build2/utility.hxx>
+#include <build2/action.hxx>
+
namespace build2
{
class scope;
class target;
- // Dump the build state to diag_stream.
+ // Dump the build state to diag_stream. If action is specified, then assume
+ // rules have been matched for this action and dump action-specific
+ // information (like rule-specific variables).
//
void
- dump ();
+ dump (optional<action> = nullopt);
void
dump (const scope&, const char* ind = "");