From: notaz Date: Fri, 27 Oct 2023 21:08:51 +0000 (+0300) Subject: try to workaround some libretro builds lacking version X-Git-Tag: r24l~93 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49918aab7faf33ec1eda0edcfcbf01e31a816985;p=pcsx_rearmed.git try to workaround some libretro builds lacking version --- diff --git a/Makefile.libretro b/Makefile.libretro index 8151180f..9fe5365a 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -75,6 +75,12 @@ else ifeq ($(platform), miyoo) endif CC_AS ?= $(CC) +# workaround wrong owner in libretro infra +GIT_VERSION1 := $(shell test -d /builds/libretro/pcsx_rearmed && git rev-parse --short HEAD 2>&1) +ifneq ($(findstring dubious ownership,$(GIT_VERSION1)),) +DUMMY := $(shell git config --global --add safe.directory /builds/libretro/pcsx_rearmed) +endif + TARGET_NAME := pcsx_rearmed ARCH_DETECTED := $(shell $(CC) $(CFLAGS) -dumpmachine | awk -F- '{print $$1}') GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"