Blob Blame History Raw
From f6acf39e17ce3d1e607be243c263dffbac9cb862 Mon Sep 17 00:00:00 2001
From: Leigh Scott <leigh123linux@gmail.com>
Date: Wed, 4 Mar 2020 22:06:51 +0000
Subject: [PATCH 4/4] Avoid x86cpudetection code when not relevant

---
 libvmaf/src/feature/common/cpu.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/libvmaf/src/feature/common/cpu.c b/libvmaf/src/feature/common/cpu.c
index ff96ddc..efcb8ec 100644
--- a/libvmaf/src/feature/common/cpu.c
+++ b/libvmaf/src/feature/common/cpu.c
@@ -16,9 +16,10 @@
  *
  */
 
-#include "cpudetect.h"
 #include "cpu.h"
 
+#if defined(__i386__) || defined(__x86_64)
+#include "cpudetect.h"
 
 enum vmaf_cpu cpu_autodetect()
 {
@@ -31,3 +32,10 @@ enum vmaf_cpu cpu_autodetect()
     else
         return VMAF_CPU_NONE;
 }
+
+#else
+enum vmaf_cpu cpu_autodetect()
+{
+    return VMAF_CPU_NONE;
+}
+#endif
-- 
2.24.1