Commit e01e9df3 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Add rec_cpp switch

parent 46ea2533
......@@ -7,6 +7,7 @@ NO_EXCEPTIONS := 0
NO_NVMEM := 0
NO_VERIFY := 1
NAOMI := 0
NO_JIT := 0
TARGET_NAME := reicast
......@@ -105,6 +106,14 @@ ifeq ($(NAOMI),1)
else
DC_PLATFORM=dreamcast
endif
ifeq ($(NO_JIT),1)
CFLAGS += -DTARGET_NO_JIT
CXXFLAGS += -DTARGET_NO_JIT
RZDCY_CFLAGS += -DTARGET_NO_JIT
CXXFLAGS += -std=c++11
WITH_DYNAREC =
endif
HOST_CPU_X86=0x20000001
HOST_CPU_ARM=0x20000002
HOST_CPU_MIPS=0x20000003
......
......@@ -121,9 +121,13 @@ SOURCES_CXX += $(CORE_DIR)/rec-ARM/rec-arm.cpp
SOURCES_ASM += $(CORE_DIR)/rec-ARM/ngen_arm.S
endif
ifeq ($(NO_JIT),1)
DYNAREC_USED = 1
SOURCES_CXX += $(CORE_DIR)/rec-cpp/rec_cpp.cpp
# Recompiler (x86 32bit)
#
ifeq ($(WITH_DYNAREC), $(filter $(WITH_DYNAREC), i386 i686 x86))
else ifeq ($(WITH_DYNAREC), $(filter $(WITH_DYNAREC), i386 i686 x86))
DYNAREC_USED = 1
SOURCES_CXX += $(CORE_DIR)/rec-x86/rec_x86_asm.cpp \
$(CORE_DIR)/rec-x86/rec_x86_driver.cpp \
......
......@@ -212,6 +212,9 @@
#endif
#if defined(TARGET_NO_JIT)
#undef FEAT_SHREC
#undef FEAT_AREC
#undef FEAT_DSPREC
#define FEAT_SHREC DYNAREC_CPP
#define FEAT_AREC DYNAREC_NONE
#define FEAT_DSPREC DYNAREC_NONE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment