Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
data-queue committed Sep 17, 2024
1 parent e6ce6bb commit db4bf03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vcpkg/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ namespace vcpkg
bool existsDefaultTool = false;
for (std::size_t i = 0; i < NUM_TOOLS; i++)
{
// if possible, find a tool with matching tool name, architecture, and os
// otherwise, choose a tool with only matching name and os and nullopt
// as architecture (this is the default tool)
const ArchToolData& d = tool_data[i];
if (d.tool == toolname && d.arch.has_value() && d.arch.value_or_exit(VCPKG_LINE_INFO) == arch && d.os == os)
{
Expand Down

0 comments on commit db4bf03

Please sign in to comment.