diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-08-26 00:38:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-26 00:38:27 -0700 |
| commit | 3a026cbe21881dc35278c2c7946b3b12b7815d09 (patch) | |
| tree | c3fcff1979504fbc2e17f8c143371c2d2e02f1f5 /toolsrc/src/vcpkg_System.cpp | |
| parent | 7a2a237e13da457bc672e27c03c492e128bdd11d (diff) | |
| parent | 70949b0d814c469d76b8ddecc514ae0af6686347 (diff) | |
| download | vcpkg-3a026cbe21881dc35278c2c7946b3b12b7815d09.tar.gz vcpkg-3a026cbe21881dc35278c2c7946b3b12b7815d09.zip | |
Merge pull request #1690 from Mixaill/vcpkg-toolsetsdetection-fix
[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 2d6246d19..481f2431e 100644 --- a/toolsrc/src/vcpkg_System.cpp +++ b/toolsrc/src/vcpkg_System.cpp @@ -43,6 +43,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); |
