summaryrefslogtreecommitdiff
path: root/src/buildtool/common/artifact.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-07-08 10:29:05 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-07-08 17:18:20 +0200
commitb9880e8ecdce02f047dfb1d19de5f1ed07a82ac6 (patch)
tree15590ac7a8ac0c5fbf052e47ae80c9382f88e489 /src/buildtool/common/artifact.hpp
parentbf159b19daf72627de01987cfbb12461705a5f22 (diff)
downloadjustbuild-b9880e8ecdce02f047dfb1d19de5f1ed07a82ac6.tar.gz
In install-cas be more liberal in parsing artifact identifiers
Diffstat (limited to 'src/buildtool/common/artifact.hpp')
-rw-r--r--src/buildtool/common/artifact.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildtool/common/artifact.hpp b/src/buildtool/common/artifact.hpp
index 6c97ab24..3f68a351 100644
--- a/src/buildtool/common/artifact.hpp
+++ b/src/buildtool/common/artifact.hpp
@@ -86,6 +86,9 @@ class Artifact {
}
return std::nullopt;
}
+
+ [[nodiscard]] static auto LiberalFromString(
+ std::string const& s) noexcept -> ObjectInfo;
};
explicit Artifact(ArtifactIdentifier id) noexcept : id_{std::move(id)} {}