X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=df1cec2650a8e2242cb2bace223ce47568c25504;hb=53e4a7e5cb46ad8589825ec95e15b56614cc54d9;hp=1aae08e337ee61c5c2f0056034363572500725ea;hpb=74f9b36fd4ac10413edf74992d5a92ac74dcc441;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index 1aae08e3..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 @@ -120,6 +124,7 @@ else ifeq ($(platform), vita) 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