From e9f64680a152c5aafd023bb5691447012e222590 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Jul 2020 11:06:02 +0200 Subject: Relax prerequisite filtering semantics of aliases in test and install rules --- libbuild2/test/rule.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libbuild2/test') diff --git a/libbuild2/test/rule.cxx b/libbuild2/test/rule.cxx index a895e27..e1006d8 100644 --- a/libbuild2/test/rule.cxx +++ b/libbuild2/test/rule.cxx @@ -97,7 +97,15 @@ namespace build2 // no project at all (e.g., installed). Also, generally, not testing // stuff that's not ours seems right. // - match_prerequisites (a, t, t.root_scope ()); + // At least that was the thinking until we've added support for ad hoc + // importation and the ability to "pull" other project's targets in a + // "glue" kind of project. Also, on the other hand to the above + // reasoning, it is unlikely a "foreign" target is listed as a + // prerequisite of an alias unintentionally. For example, an alias is + // unlikely to depend on an installed header or library. So now we + // allow this. + // + match_prerequisites (a, t); } size_t pass_n (pts.size ()); // Number of pass-through prerequisites. -- cgit v1.1