提交 6a220e2b 编写于 作者: A Antoine Fontaine 提交者: yu_qinfei

fix arm build: avoid including x86-only header from cpu_features on arm

It breaks build on Alpine/postmarketOS, and is explicitely an error on
more recent version of cpu_features:
https://github.com/google/cpu_features/blob/master/include/cpuinfo_x86.h#L207.

protecting the include with #ifdef fix the problem, as every use of
cpu_features is already protected.
上级 f2c64c73
......@@ -19,7 +19,9 @@
#include "anbox/utils.h"
#include "cpu_features_macros.h"
#if defined(CPU_FEATURES_ARCH_X86)
#include "cpuinfo_x86.h"
#endif
namespace {
std::vector<std::string> cpu_whitelist = {
......
......@@ -31,7 +31,9 @@
#include "OpenGLESDispatch/EGLDispatch.h"
#include "cpu_features_macros.h"
#if defined(CPU_FEATURES_ARCH_X86)
#include "cpuinfo_x86.h"
#endif
namespace fs = boost::filesystem;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册