aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/compile-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-15 09:11:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-15 09:11:53 +0200
commit70d63c266ffd313c03f6cf68e7080bbcd3c8c064 (patch)
treefa102b7885549600b7f66ecb31519af86858ce85 /libbuild2/cc/compile-rule.cxx
parent40f84c09974c03405a63c9eba32df7209de4bec0 (diff)
Add fsdir{} duplicate suppression in more places
Diffstat (limited to 'libbuild2/cc/compile-rule.cxx')
-rw-r--r--libbuild2/cc/compile-rule.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx
index 5c811a1..d490c8e 100644
--- a/libbuild2/cc/compile-rule.cxx
+++ b/libbuild2/cc/compile-rule.cxx
@@ -1085,7 +1085,8 @@ namespace build2
{
pt = &p.search (t);
- if (a.operation () == clean_id && !pt->dir.sub (rs.out_path ()))
+ if (pt == dir ||
+ (a.operation () == clean_id && !pt->dir.sub (rs.out_path ())))
continue;
}