diff options
-rw-r--r-- | libbuild2/functions-name.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/functions-name.cxx b/libbuild2/functions-name.cxx index c11b4b5..17a8adb 100644 --- a/libbuild2/functions-name.cxx +++ b/libbuild2/functions-name.cxx @@ -39,6 +39,12 @@ namespace build2 if (rp.first != nullptr) n.type = rp.first->name; + if (n.value.empty () && (n.type == "dir" || n.type == "fsdir")) + { + n.value = n.dir.leaf ().string (); + n.dir.make_directory (); + } + return make_pair (move (n), move (rp.second)); } |