aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_env.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-10-13 18:50:28 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-10-13 18:50:28 -0700
commit0d7381ba408e4d5bcde06ab7a6353ff14e7afc0b (patch)
tree293a786398d109ca316fc89d2f128fd80d7d5f56 /toolsrc/src/commands_env.cpp
parent2397cc044ee56160757aeb402dc7adaec6b00894 (diff)
parenta790820e8cdf9adca3e5cf066b8a563a3beaacd1 (diff)
downloadvcpkg-0d7381ba408e4d5bcde06ab7a6353ff14e7afc0b.tar.gz
vcpkg-0d7381ba408e4d5bcde06ab7a6353ff14e7afc0b.zip
Merge branch 'refactor-includes'
Diffstat (limited to 'toolsrc/src/commands_env.cpp')
-rw-r--r--toolsrc/src/commands_env.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/toolsrc/src/commands_env.cpp b/toolsrc/src/commands_env.cpp
deleted file mode 100644
index 6dad3e882..000000000
--- a/toolsrc/src/commands_env.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "pch.h"
-
-#include "vcpkg_Build.h"
-#include "vcpkg_Commands.h"
-#include "vcpkg_System.h"
-
-namespace vcpkg::Commands::Env
-{
- void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, const Triplet& default_triplet)
- {
- static const std::string EXAMPLE = Commands::Help::create_example_string(R"(env --Triplet x64-windows)");
- args.check_exact_arg_count(0, EXAMPLE);
- args.check_and_get_optional_command_arguments({});
-
- const auto pre_build_info = Build::PreBuildInfo::from_triplet_file(paths, default_triplet);
- const Toolset& toolset = paths.get_toolset(pre_build_info.platform_toolset, pre_build_info.visual_studio_path);
- System::cmd_execute_clean(Build::make_build_env_cmd(pre_build_info, toolset) + L" && cmd");
-
- Checks::exit_success(VCPKG_LINE_INFO);
- }
-}