From 505021d9297fcbc9232f7d5c2de432d5316dad08 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 13 Sep 2022 19:56:27 +0300 Subject: Add $builtin.concat(dir_path, dir_path) and $builtin.concat(dir_path, path) overloads --- libbuild2/functions-path.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libbuild2/functions-path.cxx b/libbuild2/functions-path.cxx index 8362d2e..b79585d 100644 --- a/libbuild2/functions-path.cxx +++ b/libbuild2/functions-path.cxx @@ -667,5 +667,15 @@ namespace build2 { return concat_dir_path_string (move (l), convert (move (ur))); }; + + b[".concat"] += [](dir_path l, dir_path r) + { + return value (move (l /= r)); + }; + + b[".concat"] += [](dir_path l, path r) + { + return value (path_cast (move (l)) /= r); + }; } } -- cgit v1.1