diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-04 08:39:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-04 08:39:35 +0200 |
commit | 4168cda2363f3d796d0b9922852e249aac3131ba (patch) | |
tree | 3e74f8926ad2efe57ac8ffbeb03a8585f285e618 /libbuild2/functions-target-triplet.cxx | |
parent | 864d84abcf1579b81f54d8d3f79520137d81f629 (diff) |
Mark Buildfile functions as pure or impure
Diffstat (limited to 'libbuild2/functions-target-triplet.cxx')
-rw-r--r-- | libbuild2/functions-target-triplet.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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<string> (move (ur)); }; - b[".concat"] = [](names ul, target_triplet r) + b[".concat"] += [](names ul, target_triplet r) { return convert<string> (move (ul)) + r.string (); }; |