aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin/guess.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-02-24 14:14:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-02-24 14:14:45 +0200
commitb19fe69cdd0d32dc45f166447170bc5c9c54ac5a (patch)
tree8ea63449272db53accb4d724e38589ce52c68622 /libbuild2/bin/guess.hxx
parent4a47a60f958339d5ccf479481b0d4e998ee0d448 (diff)
Extract version for lld-link
Diffstat (limited to 'libbuild2/bin/guess.hxx')
-rw-r--r--libbuild2/bin/guess.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/bin/guess.hxx b/libbuild2/bin/guess.hxx
index 255932b..27bb5ed 100644
--- a/libbuild2/bin/guess.hxx
+++ b/libbuild2/bin/guess.hxx
@@ -72,12 +72,17 @@ namespace build2
// toolchain-specific manner (usually the output of --version/-version/-v)
// and is not bulletproof.
//
+ // Note that for now the version is extracted only for some linkers. Once
+ // it's done for all of them, we should drop optional.
+ //
struct ld_info
{
process_path path;
string id;
string signature;
string checksum;
+
+ optional<semantic_version> version;
};
ld_info