aboutsummaryrefslogtreecommitdiff
path: root/build/bin/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/bin/rule.cxx')
-rw-r--r--build/bin/rule.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/build/bin/rule.cxx b/build/bin/rule.cxx
index 8507497..a09bffd 100644
--- a/build/bin/rule.cxx
+++ b/build/bin/rule.cxx
@@ -79,7 +79,15 @@ namespace build
match_only (a, *t.so);
}
- return match_result (t, &type);
+ match_result mr (t, &type);
+
+ // If there is an outer operation, indicate that we match
+ // unconditionally so that we don't override ourselves.
+ //
+ if (a.outer_operation () != 0)
+ mr.recipe_action = action (a.meta_operation (), a.operation ());
+
+ return mr;
}
recipe lib_rule::