From acdcc228c252e2a0a90a8586c5b5c6984332635b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Jul 2018 09:30:11 +0200 Subject: 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). --- build2/cc/compile-rule.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/cc') diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index 12bf2fa..ebd12fd 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -1068,7 +1068,7 @@ namespace build2 // This is like prerequisite search. // - if (optional de = tt.default_extension (tk, s, true)) + if (optional de = tt.default_extension (tk, s, nullptr, true)) if (*de == e) return true; -- cgit v1.1