From 75152526696fc024628796f0633ed695d5ebc49c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Dec 2016 17:22:28 +0200 Subject: Move exe{} to build2 core, add fallback extensions (existing files) --- build2/cc/compile.cxx | 4 +++- build2/cc/utility.ixx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/cc') 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; diff --git a/build2/cc/utility.ixx b/build2/cc/utility.ixx index dda74eb..ee54b6d 100644 --- a/build2/cc/utility.ixx +++ b/build2/cc/utility.ixx @@ -19,7 +19,7 @@ namespace build2 link_type (target& t) { return - t.is_a () ? otype::e : + t.is_a () ? otype::e : t.is_a () ? otype::a : otype::s; } -- cgit v1.1