mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 22:00:16 +08:00
[vcpkg] Hotfix build break on non-windows platforms in commands.xvsinstances.cpp
This commit is contained in:
parent
a1a18eada1
commit
1faf5c7d28
@ -16,6 +16,7 @@ namespace vcpkg::Commands::X_VSInstances
|
||||
|
||||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
const ParsedArguments parsed_args = args.parse_arguments(COMMAND_STRUCTURE);
|
||||
|
||||
const auto instances = vcpkg::VisualStudio::get_visual_studio_instances(paths);
|
||||
@ -25,5 +26,8 @@ namespace vcpkg::Commands::X_VSInstances
|
||||
}
|
||||
|
||||
Checks::exit_success(VCPKG_LINE_INFO);
|
||||
#else
|
||||
Checks::exit_with_message(VCPKG_LINE_INFO, "This command is not supported on non-windows platforms.");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user