mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-03-27 06:12:38 +01:00
libnx port
This commit is contained in:
@@ -382,6 +382,17 @@ else ifeq ($(platform), switch)
|
||||
NO_MMAP = 1
|
||||
ARCH = aarch64
|
||||
|
||||
# Nintendo Switch (libnx)
|
||||
else ifeq ($(platform), libnx)
|
||||
include $(DEVKITPRO)/libnx/switch_rules
|
||||
TARGET := $(TARGET_NAME)_libretro_$(platform).a
|
||||
ARCH := arm64
|
||||
CFLAGS += -O3 -fomit-frame-pointer -ffast-math -I$(DEVKITPRO)/libnx/include/ -fPIE -Wl,--allow-multiple-definition
|
||||
CFLAGS += -specs=$(DEVKITPRO)/libnx/switch.specs
|
||||
CFLAGS += -D__SWITCH__ -DHAVE_LIBNX
|
||||
CFLAGS += -DARM -D__aarch64__=1 -march=armv8-a -mtune=cortex-a57 -mtp=soft -ffast-math -mcpu=cortex-a57+crc+fp+simd -ffunction-sections
|
||||
CFLAGS += -Ifrontend/switch -ftree-vectorize
|
||||
STATIC_LINKING=1
|
||||
|
||||
# QNX
|
||||
else ifeq ($(platform), qnx)
|
||||
|
||||
Reference in New Issue
Block a user