mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
[vcpkg] Fix build for non-windows
This commit is contained in:
parent
60cd1202d9
commit
e2efb82aa8
@ -79,7 +79,14 @@ namespace vcpkg::Commands::Env
|
|||||||
if (build_env_cmd.empty())
|
if (build_env_cmd.empty())
|
||||||
return clean_env;
|
return clean_env;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
return System::cmd_execute_modify_env(build_env_cmd, clean_env);
|
return System::cmd_execute_modify_env(build_env_cmd, clean_env);
|
||||||
|
#else
|
||||||
|
Checks::exit_with_message(VCPKG_LINE_INFO,
|
||||||
|
"Build environment commands are not supported on this platform");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}();
|
}();
|
||||||
|
|
||||||
std::string cmd = args.command_arguments.empty() ? "cmd" : args.command_arguments.at(0);
|
std::string cmd = args.command_arguments.empty() ? "cmd" : args.command_arguments.at(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user