From 176c473cc2198d5d4219a030d1a5d8c31a5ace55 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Jul 2018 14:14:46 +0200 Subject: Prefer default extension supplied by rule over one supplied by target type --- build2/target-type.hxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build2/target-type.hxx') diff --git a/build2/target-type.hxx b/build2/target-type.hxx index 5886fdc..ebe60db 100644 --- a/build2/target-type.hxx +++ b/build2/target-type.hxx @@ -34,10 +34,12 @@ namespace build2 // returns NULL, then it means the default extension for this target could // not be derived. // - // The extension is used in two places: search_existing_file() (called for a - // prerequisite with the last argument true) and in target::derive_path() - // (called for a target with the last argument false); see their - // implementations for details. + // The default extension is used in two (key; there are others) places: + // search_existing_file() (called for a prerequisite with the last argument + // true) and in target::derive_extension() (called for a target with the + // last argument false); see their respective implementations for details. + // Note that the default extension supplied to derive_extension() (e.g., by + // a rule) takes precedence over the one returned by default_extension. // // If the pattern function is not NULL, then it is used to amend a pattern // or match (reverse is false) and then, if the amendment call returned -- cgit v1.1