From 3e39190bc50284a620605c7b61faff197e116457 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 23 Jan 2016 12:13:06 +0200 Subject: Clean up default target extension derivation logic --- build2/target-type | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build2/target-type') diff --git a/build2/target-type b/build2/target-type index 5647156..60a0e35 100644 --- a/build2/target-type +++ b/build2/target-type @@ -20,10 +20,15 @@ namespace build2 // Target type. // - // Note that we assume there is always a single instance of this class - // for any target type. As a result, we can use address comparison to - // determine if two target types are the same. + // Note that we assume there is always a single instance of this class for + // any target type. As a result, we can use address comparison to determine + // if two target types are the same. // + // If the extension derivation function is NULL, then it means this target + // type does not use extensions. Note that this is relied upon when deciding + // whether to print the extension; if the target does use extensions but the + // defaults should not or cannot (logically) be obtained, then use + // target_extension_{fail,assert}(), respectively. // struct target_type { -- cgit v1.1