diff options
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(); |
