mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 10:59:00 +08:00
[vcpkg] Add stringify for BuildResult::FILE_CONFLICTS
This commit is contained in:
parent
1081778b84
commit
bed70f54bc
@ -56,10 +56,11 @@ namespace vcpkg::Build
|
||||
CASCADED_DUE_TO_MISSING_DEPENDENCIES
|
||||
};
|
||||
|
||||
static constexpr std::array<BuildResult, 4> BuildResult_values = {
|
||||
static constexpr std::array<BuildResult, 5> BuildResult_values = {
|
||||
BuildResult::SUCCEEDED,
|
||||
BuildResult::BUILD_FAILED,
|
||||
BuildResult::POST_BUILD_CHECKS_FAILED,
|
||||
BuildResult::FILE_CONFLICTS,
|
||||
BuildResult::CASCADED_DUE_TO_MISSING_DEPENDENCIES};
|
||||
|
||||
const std::string& to_string(const BuildResult build_result);
|
||||
|
@ -240,6 +240,7 @@ namespace vcpkg::Build
|
||||
static const std::string NULLVALUE_STRING = Enums::nullvalue_to_string("vcpkg::Commands::Build::BuildResult");
|
||||
static const std::string SUCCEEDED_STRING = "SUCCEEDED";
|
||||
static const std::string BUILD_FAILED_STRING = "BUILD_FAILED";
|
||||
static const std::string FILE_CONFLICTS_STRING = "FILE_CONFLICTS";
|
||||
static const std::string POST_BUILD_CHECKS_FAILED_STRING = "POST_BUILD_CHECKS_FAILED";
|
||||
static const std::string CASCADED_DUE_TO_MISSING_DEPENDENCIES_STRING = "CASCADED_DUE_TO_MISSING_DEPENDENCIES";
|
||||
|
||||
@ -250,6 +251,7 @@ namespace vcpkg::Build
|
||||
case BuildResult::BUILD_FAILED: return BUILD_FAILED_STRING;
|
||||
case BuildResult::POST_BUILD_CHECKS_FAILED: return POST_BUILD_CHECKS_FAILED_STRING;
|
||||
case BuildResult::CASCADED_DUE_TO_MISSING_DEPENDENCIES: return CASCADED_DUE_TO_MISSING_DEPENDENCIES_STRING;
|
||||
case BuildResult::FILE_CONFLICTS: return FILE_CONFLICTS_STRING;
|
||||
default: Checks::unreachable(VCPKG_LINE_INFO);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user