From 5278e39d58007b730e452a14d8e13aa93118e9f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 11 Feb 2020 12:05:19 +0200 Subject: Add match_only flag to context --- libbuild2/cc/compile-rule.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/cc/compile-rule.cxx') 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 { 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 */, -- cgit v1.1