diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-02 14:24:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-02 14:45:13 +0200 |
commit | becea217436a79b7ef37a023da6cb4c560225a71 (patch) | |
tree | 5017f0ad3bc4d78ad737f4dc2b8b2036bb5f5664 /build/target | |
parent | 685fe65f6b26b9e57c3d10cfe68c66d8baff8a68 (diff) |
Redo extension derivation for file{}, doc{}, and cli{}
We now first check the 'extension' variable, then use the default.
Diffstat (limited to 'build/target')
-rw-r--r-- | build/target | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/target b/build/target index 2aea7ae..69f8f4f 100644 --- a/build/target +++ b/build/target @@ -1051,9 +1051,10 @@ namespace build const std::string& target_extension_fix (const target_key&, scope&); - // Get the extension from the variable. + // Get the extension from the variable or use the default if none set. + // Issue diagnostics and fail if the default is NULL. // - template <const char* var> + template <const char* var, const char* def> const std::string& target_extension_var (const target_key&, scope&); |