aboutsummaryrefslogtreecommitdiff
path: root/build/context
diff options
context:
space:
mode:
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.
//