diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 12:13:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 12:13:06 +0200 |
commit | 3e39190bc50284a620605c7b61faff197e116457 (patch) | |
tree | f121a5df5b275816205d8ab9d9a1036683e02d15 /build2/target-type | |
parent | db0edaafe15831ba6fa9c2109da37942506c62b1 (diff) |
Clean up default target extension derivation logic
Diffstat (limited to 'build2/target-type')
-rw-r--r-- | build2/target-type | 11 |
1 files changed, 8 insertions, 3 deletions
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 { |