diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-09 10:59:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-09 10:59:36 +0200 |
commit | f34dd20fb7578874925dacf21b32338af50e8c12 (patch) | |
tree | 9547f29cc0749c6e9f1f6b9e3e34b1ae8efa525b /libbuild2/in/target.cxx | |
parent | 4e547cad02a41d020895eda83088865fecef069a (diff) |
Improve low-level diagnostics in `in` rule (and derived)
Diffstat (limited to 'libbuild2/in/target.cxx')
-rw-r--r-- | libbuild2/in/target.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libbuild2/in/target.cxx b/libbuild2/in/target.cxx index d548453..54130ff 100644 --- a/libbuild2/in/target.cxx +++ b/libbuild2/in/target.cxx @@ -20,6 +20,14 @@ namespace build2 if (!e) { + // Why is the extension, say, .h.in and not .in (with .h being in the + // name)? While this is mostly academic (in this case things will work + // the same either way), conceptually, it is a header template rather + // than some file template. In other words, we are adding the second + // level classification. + // + // See also the low verbosity tidying up code in the rule. + // if (const file* t = xt.is_a<file> ()) { const string& te (t->derive_extension ()); @@ -51,7 +59,7 @@ namespace build2 &target_extension_none, nullptr, /* default_extension */ // Taken care of by search. &in_pattern, - &target_print_1_ext_verb, // Same as file. + &target_print_1_ext_verb, // Same as file (but see rule). &in_search, target_type::flag::none }; |