aboutsummaryrefslogtreecommitdiff
path: root/build/cli/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cli/rule.cxx')
-rw-r--r--build/cli/rule.cxx29
1 files changed, 1 insertions, 28 deletions
diff --git a/build/cli/rule.cxx b/build/cli/rule.cxx
index 2d001c4..6377b29 100644
--- a/build/cli/rule.cxx
+++ b/build/cli/rule.cxx
@@ -178,7 +178,7 @@ namespace build
{
cli_cxx& g (*static_cast<cli_cxx*> (mr.target));
build::match (a, g);
- return &delegate;
+ return group_recipe;
}
}
@@ -281,25 +281,6 @@ namespace build
}
}
- // Update member recipes. Without that the state update below
- // won't stick.
- //
- if (!t.h ()->recipe (a))
- t.h ()->recipe (a, &delegate);
-
- if (!t.c ()->recipe (a))
- t.c ()->recipe (a, &delegate);
-
- if (t.i () != nullptr && !t.i ()->recipe (a))
- t.i ()->recipe (a, &delegate);
-
- // Update member states.
- //
- t.h ()->state = ts;
- t.c ()->state = ts;
- if (t.i () != nullptr)
- t.i ()->state = ts;
-
return ts;
}
@@ -333,13 +314,5 @@ namespace build
return r ? target_state::changed : ts;
}
-
- target_state compile::
- delegate (action a, target& t)
- {
- // Delegate to our group.
- //
- return execute (a, *t.group);
- }
}
}