From 77bef9b64857b1d2ae96dafc2f531cadb374f561 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 20 Sep 2023 09:03:44 +0200 Subject: Fix issue with fallback rule priority in dist module While at it, also remove workarounds for the same issue in the config and test modules. --- libbuild2/rule.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbuild2/rule.cxx') diff --git a/libbuild2/rule.cxx b/libbuild2/rule.cxx index 097e15a..0d6ec8c 100644 --- a/libbuild2/rule.cxx +++ b/libbuild2/rule.cxx @@ -95,6 +95,9 @@ namespace build2 { tracer trace ("file_rule::match"); + if (match_type_ && !t.is_a ()) + return false; + // While strictly speaking we should check for the file's existence // for every action (because that's the condition for us matching), // for some actions this is clearly a waste. Say, perform_clean: we -- cgit v1.1