diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-15 09:11:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-15 09:11:53 +0200 |
commit | 70d63c266ffd313c03f6cf68e7080bbcd3c8c064 (patch) | |
tree | fa102b7885549600b7f66ecb31519af86858ce85 /libbuild2/cc/link-rule.cxx | |
parent | 40f84c09974c03405a63c9eba32df7209de4bec0 (diff) |
Add fsdir{} duplicate suppression in more places
Diffstat (limited to 'libbuild2/cc/link-rule.cxx')
-rw-r--r-- | libbuild2/cc/link-rule.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libbuild2/cc/link-rule.cxx b/libbuild2/cc/link-rule.cxx index 76e4a25..d705eb5 100644 --- a/libbuild2/cc/link-rule.cxx +++ b/libbuild2/cc/link-rule.cxx @@ -912,7 +912,7 @@ namespace build2 // for binless libraries since there could be other output (e.g., .pc // files). // - inject_fsdir (a, t); + const fsdir* dir (inject_fsdir (a, t)); // Process prerequisites, pass 1: search and match prerequisite // libraries, search obj/bmi{} targets, and search targets we do rule @@ -1201,6 +1201,12 @@ namespace build2 } pt = &p.search (t); + + if (pt == dir) + { + pt = nullptr; + continue; + } } if (skip (*pt)) |