diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2020-03-13 21:00:21 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2020-03-13 21:00:21 -0700 |
| commit | e2efb82aa8cf2f250bfe97386eb15abb0b71cbce (patch) | |
| tree | 7a33fc3f11e66a890c50ce47f78acbb802369f12 /toolsrc | |
| parent | 60cd1202d9064971f7eeaecb8999b55377f95e6d (diff) | |
| download | vcpkg-e2efb82aa8cf2f250bfe97386eb15abb0b71cbce.tar.gz vcpkg-e2efb82aa8cf2f250bfe97386eb15abb0b71cbce.zip | |
[vcpkg] Fix build for non-windows
Diffstat (limited to 'toolsrc')
| -rw-r--r-- | toolsrc/src/vcpkg/commands.env.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg/commands.env.cpp b/toolsrc/src/vcpkg/commands.env.cpp index 8d70ac144..c5cab46f4 100644 --- a/toolsrc/src/vcpkg/commands.env.cpp +++ b/toolsrc/src/vcpkg/commands.env.cpp @@ -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); |
