aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/compile.cxx')
-rw-r--r--build2/cc/compile.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 37cd7d7..74a9422 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -418,7 +418,9 @@ namespace build2
const string* dummy (nullptr);
target_key tk {&tt, nullptr, nullptr, &n, dummy};
- if (const string* de = tt.extension (tk, s))
+ // This is like prerequisite search.
+ //
+ if (const string* de = tt.extension (tk, s, true))
if (*de == e)
return true;