未验证 提交 fee8751d 编写于 作者: S Simon Fels 提交者: GitHub

Merge pull request #831 from morphis/improve-cpu-check-error-msg

cmds: improve error message for unsupported CPU features
......@@ -39,8 +39,11 @@ anbox::cmds::CheckFeatures::CheckFeatures()
CHECK_BOOL(info.features.ssse3, "SSSE 3");
if (missing_features.size() > 0) {
std::cerr << "Your computer does not meet the requirements to run Anbox. You're missing" << std::endl
<< "support for the following features: ";
char brand_string[49];
cpu_features::FillX86BrandString(brand_string);
std::cerr << "The CPU of your computer (" << brand_string << ") does not support all" << std::endl
<< "features Anbox requires." << std::endl
<< "It is missing support for the following features: ";
for (size_t n = 0; n < missing_features.size(); n++) {
const auto feature = missing_features[n];
......@@ -49,6 +52,8 @@ anbox::cmds::CheckFeatures::CheckFeatures()
std::cerr << ", ";
}
std::cerr << std::endl;
std::cerr << "You can for example find more information about SSE" << std::endl
<< "here https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions" << std::endl;
return EXIT_FAILURE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册