aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-02-11 12:05:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-02-11 12:05:19 +0200
commit5278e39d58007b730e452a14d8e13aa93118e9f4 (patch)
tree18e1e2fe0a3cac3adf6c74c4e8118e89c59a8ed2 /libbuild2/cc
parent364159d8d024a783db44cb0a5b81e94f87f10ef4 (diff)
Add match_only flag to context
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 */,