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/rule.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/rule.cxx') diff --git a/build2/rule.cxx b/build2/rule.cxx index f9805db..49172a7 100644 --- a/build2/rule.cxx +++ b/build2/rule.cxx @@ -57,6 +57,11 @@ namespace build2 // if (pt.path ().empty ()) { + // Since we cannot come up with an extension, ask the target's + // derivation function to treat this as prerequisite (just like + // in search_existing_file()). + // + pt.derive_extension (nullptr, true); pt.derive_path (); ts = pt.mtime (); } -- cgit v1.1