From 52843e3f39fed4acafaed957b649eb3ebd329ce3 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk <roman@tsisyk.com> Date: Thu, 15 Oct 2015 08:52:27 +0000 Subject: [PATCH] arm: Compile LuaJIT without -DEXTERNAL_UNWIND on non-x86 platforms External unwind code doesn't exists for non-x86 platforms. Allow LuaJIT to be compiled somehow. --- cmake/luajit.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/luajit.cmake b/cmake/luajit.cmake index d6f8a508df..42cd6870a1 100644 --- a/cmake/luajit.cmake +++ b/cmake/luajit.cmake @@ -145,8 +145,10 @@ macro(luajit_build) separate_arguments(luajit_cflags) set (luajut_ldflags ${CMAKE_STATIC_LINKER_FLAGS}) separate_arguments(luajit_ldflags) - # Use external unwind on all platforms. - set (luajit_xcflags "-DLUAJIT_UNWIND_EXTERNAL=1") + if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "86|amd64") + # Use external unwind on x86 + set (luajit_xcflags "-DLUAJIT_UNWIND_EXTERNAL=1") + endif() # We are consciously ommiting debug info in RelWithDebugInfo mode if (${CMAKE_BUILD_TYPE} STREQUAL "Debug") set (luajit_ccopt -O0) -- GitLab