aboutsummaryrefslogtreecommitdiff
path: root/build/context
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-13 14:34:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-13 14:34:24 +0200
commitca41ca8f9a6b21588248e5fee1a013363f3f52a8 (patch)
tree6e791ddac1c6f794273a9701c0c7f1bc9ec3d000 /build/context
parent0cee33621a93d3348a1bf19a0c94441b717cbcbc (diff)
Add support for "first" and "last" execution modes
Diffstat (limited to 'build/context')
-rw-r--r--build/context7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/context b/build/context
index 7c7421d..2e3209a 100644
--- a/build/context
+++ b/build/context
@@ -9,6 +9,8 @@
#include <ostream>
#include <build/path>
+#include <build/rule>
+#include <build/operation>
namespace build
{
@@ -17,6 +19,11 @@ namespace build
extern path work;
extern path home;
+ // Current action (meta/operation).
+ //
+ extern execution_mode current_mode;
+ extern const target_rule_map* current_rules;
+
// Return the src/out directory corresponding to the given out/src. The
// passed directory should be a sub-directory of out/src_root.
//