aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
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/cc
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/cc')
-rw-r--r--build2/cc/compile-rule.cxx2
1 files changed, 1 insertions, 1 deletions
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<string> de = tt.default_extension (tk, s, true))
+ if (optional<string> de = tt.default_extension (tk, s, nullptr, true))
if (*de == e)
return true;