aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-29 15:01:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-29 15:01:15 +0200
commit8a8628cc5ca1ba198e96d7808afc5875a5043bbc (patch)
tree9a5e7b23a6e2c59def5a7d66b568433c375ff351 /libbuild2/rule.cxx
parente19b3b03ec3ba22717cc05854c62ed78c69bb1a4 (diff)
Move low-verbosity command name from adhoc_script_rule to script
Diffstat (limited to 'libbuild2/rule.cxx')
-rw-r--r--libbuild2/rule.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/libbuild2/rule.cxx b/libbuild2/rule.cxx
index 773d42e..2e5fe5d 100644
--- a/libbuild2/rule.cxx
+++ b/libbuild2/rule.cxx
@@ -365,14 +365,18 @@ namespace build2
{
// Do we need the header?
//
- if (diag)
+ // @@ TODO: for now we dump it as an attribute whether it was specified or
+ // derived from the script. Maybe that's ok?
+ //
+ if (script.diag)
{
os << ind << '%';
- if (diag)
+ if (script.diag)
{
os << " [";
- os << "diag="; to_stream (os, name (*diag), true /* quote */, '@');
+ os << "diag=";
+ to_stream (os, name (*script.diag), true /* quote */, '@');
os << ']';
}
@@ -612,7 +616,7 @@ namespace build2
if (verb == 1)
{
- // @@ TODO:
+ // @@ TODO (and below):
//
// - derive diag if absent (should probably do in match?)
//
@@ -624,7 +628,7 @@ namespace build2
// (including tools)?
//
- text << (diag ? diag->c_str () : "adhoc") << ' ' << t;
+ text << (script.diag ? script.diag->c_str () : "adhoc") << ' ' << t;
}
if (!ctx.dry_run || verb >= 2)
@@ -657,7 +661,7 @@ namespace build2
{
// @@ TODO: as above
- text << (diag ? diag->c_str () : "adhoc") << ' ' << t;
+ text << (script.diag ? script.diag->c_str () : "adhoc") << ' ' << t;
}
if (!ctx.dry_run || verb >= 2)