From 4168cda2363f3d796d0b9922852e249aac3131ba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Dec 2020 08:39:35 +0200 Subject: Mark Buildfile functions as pure or impure --- libbuild2/functions-target-triplet.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libbuild2/functions-target-triplet.cxx') diff --git a/libbuild2/functions-target-triplet.cxx b/libbuild2/functions-target-triplet.cxx index ff9a15d..4b0ec02 100644 --- a/libbuild2/functions-target-triplet.cxx +++ b/libbuild2/functions-target-triplet.cxx @@ -13,22 +13,22 @@ namespace build2 { function_family f (m, "target_triplet"); - f["string"] = [](target_triplet t) {return t.string ();}; - f["representation"] = [](target_triplet t) {return t.representation ();}; + f["string"] += [](target_triplet t) {return t.string ();}; + f["representation"] += [](target_triplet t) {return t.representation ();}; // Target triplet-specific overloads from builtins. // function_family b (m, "builtin"); - b[".concat"] = [](target_triplet l, string sr) {return l.string () + sr;}; - b[".concat"] = [](string sl, target_triplet r) {return sl + r.string ();}; + b[".concat"] += [](target_triplet l, string sr) {return l.string () + sr;}; + b[".concat"] += [](string sl, target_triplet r) {return sl + r.string ();}; - b[".concat"] = [](target_triplet l, names ur) + b[".concat"] += [](target_triplet l, names ur) { return l.string () + convert (move (ur)); }; - b[".concat"] = [](names ul, target_triplet r) + b[".concat"] += [](names ul, target_triplet r) { return convert (move (ul)) + r.string (); }; -- cgit v1.1