From bb865fb312d9f603a18a40768ae357da0421905d Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 1 Apr 2017 02:08:48 -0700 Subject: [vcpkg] Merge search for dumpbin and toolchain (they are the same). --- toolsrc/include/cstring_view.h | 1 + toolsrc/include/vcpkg_paths.h | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'toolsrc/include') diff --git a/toolsrc/include/cstring_view.h b/toolsrc/include/cstring_view.h index 88728992b..92f1a6fa5 100644 --- a/toolsrc/include/cstring_view.h +++ b/toolsrc/include/cstring_view.h @@ -6,6 +6,7 @@ namespace vcpkg template struct basic_cstring_view { + constexpr basic_cstring_view() : cstr(nullptr) {} constexpr basic_cstring_view(const CharType* cstr) : cstr(cstr) {} basic_cstring_view(const std::basic_string& str) : cstr(str.c_str()) {} diff --git a/toolsrc/include/vcpkg_paths.h b/toolsrc/include/vcpkg_paths.h index 9577abd01..474f47255 100644 --- a/toolsrc/include/vcpkg_paths.h +++ b/toolsrc/include/vcpkg_paths.h @@ -7,10 +7,11 @@ namespace vcpkg { - struct vcvarsall_and_platform_toolset + struct toolset_t { - fs::path path; - std::wstring platform_toolset; + fs::path dumpbin; + fs::path vcvarsall; + cwstring_view version; }; struct vcpkg_paths @@ -46,12 +47,12 @@ namespace vcpkg const fs::path& get_cmake_exe() const; const fs::path& get_git_exe() const; const fs::path& get_nuget_exe() const; - const fs::path& get_dumpbin_exe() const; - const vcvarsall_and_platform_toolset& get_vcvarsall_bat() const; + const toolset_t& get_toolset() const; private: lazy cmake_exe; lazy git_exe; lazy nuget_exe; + lazy toolset; }; } -- cgit v1.2.3