aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorMikhail Paulyshka <me@mixaill.tk>2017-08-24 13:26:42 +0300
committerMikhail Paulyshka <me@mixaill.tk>2017-08-24 13:26:42 +0300
commit7dd082cad7b1b8323fb5409399614e8e0f4cddf2 (patch)
tree6bd7a70f2abe1decf34bcf1ac5627534e0748505 /toolsrc/include
parentbed70f54bc2dd7181a54bbbb94d2fe3a1a0b35cc (diff)
downloadvcpkg-7dd082cad7b1b8323fb5409399614e8e0f4cddf2.tar.gz
vcpkg-7dd082cad7b1b8323fb5409399614e8e0f4cddf2.zip
[vcpkg] testing for architectures supported by toolset
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/VcpkgPaths.h13
-rw-r--r--toolsrc/include/vcpkg_System.h2
2 files changed, 15 insertions, 0 deletions
diff --git a/toolsrc/include/VcpkgPaths.h b/toolsrc/include/VcpkgPaths.h
index e4e7ba83d..7964129e5 100644
--- a/toolsrc/include/VcpkgPaths.h
+++ b/toolsrc/include/VcpkgPaths.h
@@ -8,11 +8,24 @@
namespace vcpkg
{
+ struct ToolsetArchOption
+ {
+ CWStringView name;
+ System::CPUArchitecture host_arch;
+ System::CPUArchitecture target_arch;
+
+ bool operator==(const ToolsetArchOption& a) const
+ {
+ return (name == a.name && host_arch == a.host_arch && target_arch == a.target_arch);
+ }
+ };
+
struct Toolset
{
fs::path dumpbin;
fs::path vcvarsall;
CWStringView version;
+ std::vector<ToolsetArchOption> supported_architectures;
};
struct VcpkgPaths
diff --git a/toolsrc/include/vcpkg_System.h b/toolsrc/include/vcpkg_System.h
index 2ea0241f6..32da6e39c 100644
--- a/toolsrc/include/vcpkg_System.h
+++ b/toolsrc/include/vcpkg_System.h
@@ -77,6 +77,8 @@ namespace vcpkg::System
CPUArchitecture get_host_processor();
+ std::vector<CPUArchitecture> get_supported_host_architectures();
+
const fs::path& get_ProgramFiles_32_bit();
const fs::path& get_ProgramFiles_platform_bitness();