diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-01 02:08:48 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-01 02:08:48 -0700 |
| commit | bb865fb312d9f603a18a40768ae357da0421905d (patch) | |
| tree | 1bb1e4336afcf7962646e7087b235c3992fb634a /toolsrc/src/commands_build.cpp | |
| parent | 05c9f77a4ae72b8339b027ccbe5a769fc627fe87 (diff) | |
| download | vcpkg-bb865fb312d9f603a18a40768ae357da0421905d.tar.gz vcpkg-bb865fb312d9f603a18a40768ae357da0421905d.zip | |
[vcpkg] Merge search for dumpbin and toolchain (they are the same).
Diffstat (limited to 'toolsrc/src/commands_build.cpp')
| -rw-r--r-- | toolsrc/src/commands_build.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/commands_build.cpp b/toolsrc/src/commands_build.cpp index 301612831..8791ef1c1 100644 --- a/toolsrc/src/commands_build.cpp +++ b/toolsrc/src/commands_build.cpp @@ -42,8 +42,8 @@ namespace vcpkg::Commands::Build const fs::path& git_exe_path = paths.get_git_exe(); const fs::path ports_cmake_script_path = paths.ports_cmake; - const vcvarsall_and_platform_toolset vcvarsall_bat = paths.get_vcvarsall_bat(); - const std::wstring cmd_set_environment = Strings::wformat(LR"("%s" %s >nul 2>&1)", vcvarsall_bat.path.native(), Strings::utf8_to_utf16(target_triplet.architecture())); + const toolset_t& toolset = paths.get_toolset(); + const std::wstring cmd_set_environment = Strings::wformat(LR"("%s" %s >nul 2>&1)", toolset.vcvarsall.native(), Strings::utf8_to_utf16(target_triplet.architecture())); const std::wstring cmd_launch_cmake = make_cmake_cmd(cmake_exe_path, ports_cmake_script_path, { @@ -51,7 +51,7 @@ namespace vcpkg::Commands::Build { L"PORT", source_paragraph.name }, { L"CURRENT_PORT_DIR", port_dir / "/." }, { L"TARGET_TRIPLET", target_triplet.canonical_name() }, - { L"VCPKG_PLATFORM_TOOLSET", vcvarsall_bat.platform_toolset }, + { L"VCPKG_PLATFORM_TOOLSET", toolset.version }, { L"GIT", git_exe_path } }); |
