aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/compile-rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx
index 26df353..b0fc40c 100644
--- a/libbuild2/cc/compile-rule.cxx
+++ b/libbuild2/cc/compile-rule.cxx
@@ -3278,7 +3278,7 @@ namespace build2
// We can only defer the failure if we will be running the compiler.
// Let's also only do it in the "keep going" mode.
//
- bool df (!ctx.dry_run_option && ctx.keep_going);
+ bool df (!ctx.match_only && !ctx.dry_run_option && ctx.keep_going);
const file* ht (enter_header (a, bs, t, li,
move (hp), cache,
@@ -3340,7 +3340,7 @@ namespace build2
this] (path hp, path bp, timestamp mt) -> optional<bool>
{
context& ctx (t.ctx);
- bool df (!ctx.dry_run_option && ctx.keep_going);
+ bool df (!ctx.match_only && !ctx.dry_run_option && ctx.keep_going);
const file* ht (enter_header (a, bs, t, li,
move (hp), true /* cache */,