diff options
Diffstat (limited to 'build2/target-type')
-rw-r--r-- | build2/target-type | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/build2/target-type b/build2/target-type index 378fd7c..5e7f59b 100644 --- a/build2/target-type +++ b/build2/target-type @@ -31,9 +31,10 @@ namespace build2 // respectively. If the extension function returns NULL, then that means the // default extension for this target could not be derived. // - // The extension is primarily used in two places: search_existing_file() - // (called for a prerequisite) and in target::derive_path() (called for a - // target); see their implementations for details. + // 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. // struct target_type { @@ -41,7 +42,7 @@ namespace build2 const target_type* base; target* (*factory) ( const target_type&, dir_path, dir_path, string, const string*); - const string* (*extension) (const target_key&, scope&); + const string* (*extension) (const target_key&, scope&, bool search); void (*print) (ostream&, const target_key&); target* (*search) (const prerequisite_key&); bool see_through; // A group with the default "see through" semantics. |