Skip to content
Snippets Groups Projects
Commit 66bef419 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

arm: Fix ENABLE_BACKTRACE on non-x86 platforms

parent f95017b7
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment