mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01: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())
|
||||
return clean_env;
|
||||
else
|
||||
{
|
||||
#ifdef _WIN32
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user