diff options
| author | Mikhail Paulyshka <me@mixaill.tk> | 2017-08-24 13:26:42 +0300 |
|---|---|---|
| committer | Mikhail Paulyshka <me@mixaill.tk> | 2017-08-24 13:26:42 +0300 |
| commit | 7dd082cad7b1b8323fb5409399614e8e0f4cddf2 (patch) | |
| tree | 6bd7a70f2abe1decf34bcf1ac5627534e0748505 /toolsrc/src/vcpkg_System.cpp | |
| parent | bed70f54bc2dd7181a54bbbb94d2fe3a1a0b35cc (diff) | |
| download | vcpkg-7dd082cad7b1b8323fb5409399614e8e0f4cddf2.tar.gz vcpkg-7dd082cad7b1b8323fb5409399614e8e0f4cddf2.zip | |
[vcpkg] testing for architectures supported by toolset
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_System.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp index 883fe6612..3288ec7a2 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -42,6 +42,20 @@ namespace vcpkg::System return to_cpu_architecture(Strings::to_utf8(procarch)).value_or_exit(VCPKG_LINE_INFO); } + std::vector<CPUArchitecture> get_supported_host_architectures() + { + std::vector<CPUArchitecture> supported_architectures; + supported_architectures.push_back(get_host_processor()); + + //AMD64 machines support to run x86 applications + if(supported_architectures.back()==CPUArchitecture::X64) + { + supported_architectures.push_back(CPUArchitecture::X86); + } + + return supported_architectures; + } + int cmd_execute_clean(const CWStringView cmd_line) { static const std::wstring system_root = get_environment_variable(L"SystemRoot").value_or_exit(VCPKG_LINE_INFO); |
