aboutsummaryrefslogtreecommitdiff
path: root/build2/target-type.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-25 14:14:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-25 14:14:46 +0200
commit176c473cc2198d5d4219a030d1a5d8c31a5ace55 (patch)
tree78ab3e5f9f0382966d1d07cb4e12e3574faaa0be /build2/target-type.hxx
parenta27deb800bad9cfc4411f2bea98ad7ec7a3bdb65 (diff)
Prefer default extension supplied by rule over one supplied by target type
Diffstat (limited to 'build2/target-type.hxx')
-rw-r--r--build2/target-type.hxx10
1 files changed, 6 insertions, 4 deletions
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