From 43a1c24b089ae92bcf9a80584ebdf4c4011b9664 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 19 May 2018 09:02:17 +0200 Subject: Support for deriving target type from file name, handle testscript, buildfile In particular, instead of: exe{test}: test{testscript} We should now write: exe{test}: testscript --- build2/context.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/context.cxx') diff --git a/build2/context.cxx b/build2/context.cxx index 48776b0..7067d8f 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -524,6 +524,11 @@ namespace build2 t.insert (); t.insert (); t.insert (); + + { + auto& tt (t.insert ()); + t.insert_file ("buildfile", tt); + } } // Parse and enter the command line variables. We do it before entering -- cgit v1.1