diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-26 09:30:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-26 09:30:11 +0200 |
commit | acdcc228c252e2a0a90a8586c5b5c6984332635b (patch) | |
tree | d5d683b623e6f97661a70bd9b915d728b04be189 /build2/target.txx | |
parent | bd9c21a84b62553000fb1e6d23fac4c58febf348 (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.txx')
-rw-r--r-- | build2/target.txx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/target.txx b/build2/target.txx index 4feea2f..d832d6b 100644 --- a/build2/target.txx +++ b/build2/target.txx @@ -105,7 +105,10 @@ namespace build2 template <const char* var, const char* def> optional<string> - target_extension_var (const target_key& tk, const scope& s, bool) + target_extension_var (const target_key& tk, + const scope& s, + const char*, + bool) { return target_extension_var_impl (*tk.type, *tk.name, s, var, def); } |