X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Makefile.libretro;h=df1cec2650a8e2242cb2bace223ce47568c25504;hb=53e4a7e5cb46ad8589825ec95e15b56614cc54d9;hp=0f6608d9eeec69e0cfaba35fb90d3c90f4d6f9a1;hpb=9766e77ddec3157cbf8b7da407b99f47467a8f72;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index 0f6608d9..df1cec26 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -22,6 +22,10 @@ CC_AS ?= $(CC) CFLAGS ?= TARGET_NAME := pcsx_rearmed +GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" +ifneq ($(GIT_VERSION)," unknown") + CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" +endif LIBZ := -lz LIBPTHREAD := -lpthread LIBDL := -ldl @@ -118,6 +122,9 @@ else ifeq ($(platform), vita) AR = arm-vita-eabi-ar$(EXE_EXT) CFLAGS += -DVITA CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -marm + CFLAGS += -fsingle-precision-constant -mword-relocations -fno-unwind-tables + CFLAGS += -fno-asynchronous-unwind-tables -ftree-vectorize -funroll-loops + CFLAGS += -fno-optimize-sibling-calls CFLAGS += -I$(VITASDK)/include -Ifrontend/vita CFLAGS += -DNO_SOCKET -DNO_OS -DNO_DYLIB ASFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon