From 66bef419a8fd8dfdadbc3aee0d130d9471fcd389 Mon Sep 17 00:00:00 2001
From: Roman Tsisyk <roman@tsisyk.com>
Date: Thu, 15 Oct 2015 08:51:57 +0000
Subject: [PATCH] arm: Fix ENABLE_BACKTRACE on non-x86 platforms

---
 CMakeLists.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2428e35b12..670dcc787a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,10 +219,8 @@ addresses are printed." ${CMAKE_COMPILER_IS_GNUCC})
 
 set (HAVE_BFD False)
 if (ENABLE_BACKTRACE)
-    if (NOT ${CMAKE_COMPILER_IS_GNUCC} OR
-        NOT (${CMAKE_SYSTEM_PROCESSOR} MATCHES "86|amd64"))
+    if (NOT ${CMAKE_COMPILER_IS_GNUCC})
         # We only know this option to work with gcc
-        # on x86 architecture.
         message (FATAL_ERROR "ENABLE_BACKTRACE option is set but the system is not x86 based (${CMAKE_SYSTEM_PROCESSOR}) or the compiler is not GNU GCC (${CMAKE_C_COMPILER}).")
     endif()
     # Use GNU bfd if present.
-- 
GitLab