aboutsummaryrefslogtreecommitdiff
path: root/build2/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-19 09:02:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-19 09:02:17 +0200
commit43a1c24b089ae92bcf9a80584ebdf4c4011b9664 (patch)
tree11d6001053fbb10b1c69271ecdb85541c45193ba /build2/context.cxx
parent3e4823adaaea81329f0e0dd165cfa6e2f56b62bf (diff)
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
Diffstat (limited to 'build2/context.cxx')
-rw-r--r--build2/context.cxx5
1 files changed, 5 insertions, 0 deletions
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<doc> ();
t.insert<man> ();
t.insert<man1> ();
+
+ {
+ auto& tt (t.insert<buildfile> ());
+ t.insert_file ("buildfile", tt);
+ }
}
// Parse and enter the command line variables. We do it before entering