Fix #ifdef'ed references to get_tool_exe()
MODIFY
src/vcpkg/build.cpp
src/vcpkg/build.cpp
@@ -338,7 +338,7 @@ namespace vcpkg::Build
#if !defined(_WIN32)
// TODO: remove when vcpkg.exe is in charge for acquiring tools. Change introduced in vcpkg v0.0.107.
// bootstrap should have already downloaded ninja, but making sure it is present in case it was deleted.
- vcpkg::Util::unused(paths.get_ninja_exe());
+ vcpkg::Util::unused(paths.get_tool_exe(Tools::NINJA));
#endif
const fs::path& cmake_exe_path = paths.get_tool_exe(Tools::CMAKE);

MODIFY
src/vcpkg/commands.hash.cpp
src/vcpkg/commands.hash.cpp
@@ -112,7 +112,7 @@ namespace vcpkg::Commands::Hash
{
const std::string cmd_line = Strings::format(
R"("%s" -E %ssum "%s")",
- paths.get_cmake_exe().u8string(),
+ paths.get_tool_exe(Tools::CMAKE).u8string(),
Strings::ascii_to_lowercase(hash_type),
path.u8string());

Fix #ifdef'ed references to get_tool_exe()