diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-16 17:22:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-16 17:22:28 +0200 |
commit | 75152526696fc024628796f0633ed695d5ebc49c (patch) | |
tree | faeef54a6b4d7e9a816b8d541500c48484e4ed39 /build2/cc/compile.cxx | |
parent | cc12ed4245a2b61f4c4eb2a970398c920fbc1d37 (diff) |
Move exe{} to build2 core, add fallback extensions (existing files)
Diffstat (limited to 'build2/cc/compile.cxx')
-rw-r--r-- | build2/cc/compile.cxx | 4 |
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; |