aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libretro
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.libretro')
-rw-r--r--Makefile.libretro6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.libretro b/Makefile.libretro
index 5a59aea..2cda1d0 100644
--- a/Makefile.libretro
+++ b/Makefile.libretro
@@ -47,6 +47,12 @@ ifeq ($(platform), unix)
ifneq ($(findstring SunOS,$(shell uname -s)),)
CC = gcc
endif
+ifeq ($(ARCH), arm)
+ifneq ($(findstring __thumb__,$(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h)),)
+ # must disable thumb as recompiler can't handle it
+ CFLAGS += -marm
+endif
+endif
else ifeq ($(platform), linux-portable)
TARGET := $(TARGET_NAME)_libretro.so