aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-06 08:49:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-10-06 08:49:56 +0200
commit9637eb583a4e2bc028b93d5b8f5ceb981402554d (patch)
tree788083324687b6fe4d4309c6f3521a4a10b123b5 /libbuild2/install/rule.cxx
parent2572a7015d9c2524a9d8299b2aa0b30ab8c880f5 (diff)
Do not install exe{} prerequisites of file targets
Diffstat (limited to 'libbuild2/install/rule.cxx')
-rw-r--r--libbuild2/install/rule.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx
index d678940..3543286 100644
--- a/libbuild2/install/rule.cxx
+++ b/libbuild2/install/rule.cxx
@@ -288,6 +288,9 @@ namespace build2
filter (const scope* is,
action, const target& t, const prerequisite& p) const
{
+ if (p.is_a<exe> ())
+ return nullptr;
+
const target& pt (search (t, p));
return is == nullptr || pt.in (*is) ? &pt : nullptr;
}