aboutsummaryrefslogtreecommitdiff
path: root/build/b.cxx
diff options
context:
space:
mode:
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);