aboutsummaryrefslogtreecommitdiff
path: root/build2/search.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/search.cxx')
-rw-r--r--build2/search.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/search.cxx b/build2/search.cxx
index a7d40c6..f0b163a 100644
--- a/build2/search.cxx
+++ b/build2/search.cxx
@@ -102,7 +102,9 @@ namespace build2
if (!ext)
{
- if (auto f = ctk.type->extension)
+ if (auto f = ctk.type->fixed_extension)
+ ext = f (ctk);
+ else if (auto f = ctk.type->default_extension)
ext = f (ctk, *s, true);
if (!ext)