aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-22 10:01:12 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-22 10:01:12 -0700
commit1f62b32641045fe377ee80ff1854a785344687d2 (patch)
treead30ab93b8c2bd4d96727f63ae0210caefc0d2b3 /toolsrc/include
parentc80650593399fb2dddc9dff74016f3c5f3e29b28 (diff)
downloadvcpkg-1f62b32641045fe377ee80ff1854a785344687d2.tar.gz
vcpkg-1f62b32641045fe377ee80ff1854a785344687d2.zip
[vcpkg] Sort abi tags to ensure stability
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/build.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h
index 8c4d7b575..1c22d39d8 100644
--- a/toolsrc/include/vcpkg/build.h
+++ b/toolsrc/include/vcpkg/build.h
@@ -209,6 +209,11 @@ namespace vcpkg::Build
{
std::string key;
std::string value;
+
+ bool operator<(const AbiEntry& other) const
+ {
+ return key < other.key || (key == other.key && value < other.value);
+ }
};
struct AbiTagAndFile