aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/vcpkg_System.h
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-05-05 00:26:51 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-05-05 00:26:51 -0700
commitfcb60f72593275a5727c93edc31f0a35d420d069 (patch)
tree4ffb3ccec34ddb347925c2cb874063f274aae61f /toolsrc/include/vcpkg_System.h
parentdc2bdbd4adb27ac81b5e7e91d8275913838bc4a1 (diff)
parente4c5ef656607a1165566b338f5a85f907a627f86 (diff)
downloadvcpkg-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.h14
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();