aboutsummaryrefslogtreecommitdiff
path: root/build/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-24 06:09:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-24 06:09:23 +0200
commit5fc53bd74c7635a292cef041180da4cd32b7fb12 (patch)
tree917de261e05b203e5b152ec4f0232eb20a14a07a /build/b.cxx
parentdea0d0913711f23fff3b902e3aa6006c6b54905a (diff)
Add fsdir{} for creating directories
Diffstat (limited to 'build/b.cxx')
-rw-r--r--build/b.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/b.cxx b/build/b.cxx
index 1edce6b..05dac4c 100644
--- a/build/b.cxx
+++ b/build/b.cxx
@@ -84,6 +84,7 @@ main (int argc, char* argv[])
//
target_types.insert (file::static_type);
target_types.insert (dir::static_type);
+ target_types.insert (fsdir::static_type);
target_types.insert (exe::static_type);
target_types.insert (obj::static_type);
@@ -164,7 +165,7 @@ main (int argc, char* argv[])
try
{
- p.parse (ifs, bf, scopes[path::current ()]);
+ p.parse (ifs, bf, scopes[out_base]);
}
catch (const std::ios_base::failure&)
{
@@ -184,6 +185,9 @@ main (int argc, char* argv[])
dir_rule dir_r;
rules[typeid (dir)].emplace ("dir", dir_r);
+ fsdir_rule fsdir_r;
+ rules[typeid (fsdir)].emplace ("fsdir", fsdir_r);
+
path_rule path_r;
rules[typeid (path_target)].emplace ("path", path_r);