Fix Makefile arch detection support
x86/64 detection only enabled for unix platforms, since other platforms have hardcoded rules (including windows).
This commit is contained in:
parent
e3d5ca8419
commit
aa52f960c8
1 changed files with 6 additions and 4 deletions
10
Makefile
10
Makefile
|
@ -19,7 +19,7 @@ else ifneq ($(findstring win,$(shell uname -s)),)
|
|||
endif
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(platform), unix)
|
||||
ifeq ($(firstword $(filter x86_64,$(UNAME))),x86_64)
|
||||
HAVE_DYNAREC := 1
|
||||
CPU_ARCH := x86_32
|
||||
|
@ -31,6 +31,7 @@ else ifeq ($(firstword $(filter x86,$(UNAME))),x86)
|
|||
HAVE_DYNAREC := 1
|
||||
CPU_ARCH := x86_32
|
||||
endif
|
||||
endif
|
||||
|
||||
FORCE_32BIT :=
|
||||
|
||||
|
@ -463,10 +464,11 @@ else
|
|||
CC ?= gcc
|
||||
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T
|
||||
CFLAGS += -D__WIN32__ -D__WIN32_LIBRETRO__
|
||||
ifeq ($(HAVE_DYNAREC),1)
|
||||
MMAP_JIT_CACHE = 1
|
||||
endif
|
||||
|
||||
# Windows32/64 has dynarec support
|
||||
HAVE_DYNAREC := 1
|
||||
CPU_ARCH := x86_32
|
||||
MMAP_JIT_CACHE = 1
|
||||
endif
|
||||
|
||||
ifeq ($(MMAP_JIT_CACHE), 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue