[vcpkg] Sort abi tags to ensure stability
MODIFY
include/vcpkg/build.h
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

MODIFY
src/vcpkg/build.cpp
src/vcpkg/build.cpp
@@ -449,6 +449,8 @@ namespace vcpkg::Build
if (config.build_package_options.use_head_version == UseHeadVersion::YES)
abi_tag_entries.emplace_back(AbiEntry{"head", ""});
+ Util::sort(abi_tag_entries);
+
std::string full_abi_info =
Strings::join("", abi_tag_entries, [](const AbiEntry& p) { return p.key + " " + p.value + "\n"; });

[vcpkg] Sort abi tags to ensure stability