diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-09-16 08:39:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-09-16 08:39:05 +0200 |
commit | 65ce598d17a662b4c8b9a8df02b619549c5824c3 (patch) | |
tree | bd0e3dd010120b154cf4490e458f0c4e34ece93d /libbuild2/config | |
parent | 505021d9297fcbc9232f7d5c2de432d5316dad08 (diff) |
Register fallback dist meta-operation rule for out of project targets
The problematic scenario this fixes is an ad hoc pattern rule (which
we register for dist in order to inject any additional sources; see
parser.cxx for details) that pulls a tool imported from the system
(say /usr/bin/xxd).
Diffstat (limited to 'libbuild2/config')
-rw-r--r-- | libbuild2/config/init.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx index e921657..72ded05 100644 --- a/libbuild2/config/init.cxx +++ b/libbuild2/config/init.cxx @@ -702,10 +702,12 @@ namespace build2 // Register alias and fallback rule for the configure meta-operation. // - // We need this rule for out-of-any-project dependencies (e.g., - // libraries imported from /usr/lib). We are registring it on the + // We need this rule for out-of-any-project dependencies (for example, + // libraries imported from /usr/lib). We are registering it on the // global scope similar to builtin rules. // + // See a similar rule in the dist module. + // rs.global_scope ().insert_rule<mtime_target> ( configure_id, 0, "config.file", file_rule::instance); |