diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-05-05 00:26:51 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-05-05 00:26:51 -0700 |
| commit | fcb60f72593275a5727c93edc31f0a35d420d069 (patch) | |
| tree | 4ffb3ccec34ddb347925c2cb874063f274aae61f /toolsrc/include/vcpkg_System.h | |
| parent | dc2bdbd4adb27ac81b5e7e91d8275913838bc4a1 (diff) | |
| parent | e4c5ef656607a1165566b338f5a85f907a627f86 (diff) | |
| download | vcpkg-fcb60f72593275a5727c93edc31f0a35d420d069.tar.gz vcpkg-fcb60f72593275a5727c93edc31f0a35d420d069.zip | |
Merge branch 'master' into KindDragon-snappy
Diffstat (limited to 'toolsrc/include/vcpkg_System.h')
| -rw-r--r-- | toolsrc/include/vcpkg_System.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg_System.h b/toolsrc/include/vcpkg_System.h index c8deac38e..71033a642 100644 --- a/toolsrc/include/vcpkg_System.h +++ b/toolsrc/include/vcpkg_System.h @@ -61,10 +61,22 @@ namespace vcpkg::System return println(c, Strings::format(messageTemplate, messageArg1, messageArgs...)); } - Optional<std::wstring> get_environmental_variable(const CWStringView varname) noexcept; + Optional<std::wstring> get_environment_variable(const CWStringView varname) noexcept; Optional<std::wstring> get_registry_string(HKEY base, const CWStringView subkey, const CWStringView valuename); + enum class CPUArchitecture + { + X86, + X64, + ARM, + ARM64, + }; + + Optional<CPUArchitecture> to_cpu_architecture(CStringView arch); + + CPUArchitecture get_host_processor(); + const fs::path& get_ProgramFiles_32_bit(); const fs::path& get_ProgramFiles_platform_bitness(); |
