aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/in/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-05-21 15:11:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-05-28 10:10:44 +0200
commite1f472e471533330db05a42d5bcd4e99b211da0c (patch)
treecdaa6a1de2a69965a347d6132a63c5b12d051c68 /libbuild2/in/target.cxx
parent7d0cbd244d218bca8b806c283a5ae095f221b324 (diff)
Clean default target type extension logic
Diffstat (limited to 'libbuild2/in/target.cxx')
-rw-r--r--libbuild2/in/target.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbuild2/in/target.cxx b/libbuild2/in/target.cxx
index 0affc04..d9bc8a7 100644
--- a/libbuild2/in/target.cxx
+++ b/libbuild2/in/target.cxx
@@ -43,14 +43,12 @@ namespace build2
fail (l) << "pattern in in{} prerequisite" << endf;
}
- extern const char in_ext_def[] = ""; // No extension by default.
-
const target_type in::static_type
{
"in",
&file::static_type,
&target_factory<in>,
- &target_extension_fix<in_ext_def>,
+ &target_extension_none,
nullptr, /* default_extension */ // Taken care of by search.
&in_pattern,
&target_print_1_ext_verb, // Same as file.