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/search.cxx | |
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/search.cxx')
-rw-r--r-- | build2/search.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/search.cxx b/build2/search.cxx index 69e9986..960229b 100644 --- a/build2/search.cxx +++ b/build2/search.cxx @@ -117,7 +117,7 @@ namespace build2 if (auto f = ctk.type->fixed_extension) ext = f (ctk); else if (auto f = ctk.type->default_extension) - ext = f (ctk, *s, true); + ext = f (ctk, *s, nullptr, true); if (!ext) { |