aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-26 09:30:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-26 09:30:11 +0200
commitacdcc228c252e2a0a90a8586c5b5c6984332635b (patch)
treed5d683b623e6f97661a70bd9b915d728b04be189 /build2/target.hxx
parentbd9c21a84b62553000fb1e6d23fac4c58febf348 (diff)
Pass extension supplied by rule to target type default extension function
Also revert the precedence back to target type over rule. But now the target type is able to customize this logic (see exe{} for a use case).
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index aad5331..0f8c8ea 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -1713,7 +1713,7 @@ namespace build2
//
template <const char* var, const char* def>
optional<string>
- target_extension_var (const target_key&, const scope&, bool);
+ target_extension_var (const target_key&, const scope&, const char*, bool);
template <const char* var, const char* def>
bool
@@ -1722,12 +1722,12 @@ namespace build2
// Always return NULL extension.
//
optional<string>
- target_extension_null (const target_key&, const scope&, bool);
+ target_extension_null (const target_key&, const scope&, const char*, bool);
// Assert if called.
//
optional<string>
- target_extension_assert (const target_key&, const scope&, bool);
+ target_extension_assert (const target_key&, const scope&, const char*, bool);
// Target print functions.
//