Files
RetroArch/samples/settings/cli_override_rows/Makefile
libretroadmin 8b6754f929 configuration: pin command-line overrides to their own rows
log_to_file and netplay_check_frames are generated rows now, so the
SETTING_OVERRIDE that followed each by hand landed on whichever row
was added last. With --log-file or --check-frames, config_save_file()
then skipped that unrelated setting and wrote the command-line value
into the config. SETTING_OVERRIDE_FOR finds the setting's own row,
and only once its override is set, the one time it is read.

cli_override_rows_test sets every override and checks each lands on
its own key.
2026-10-24 00:29:32 +02:00

25 lines
740 B
Makefile

ROOT := ../../..
CC ?= gcc
EXE ?=
CPPFLAGS += -I$(ROOT) -I$(ROOT)/libretro-common/include -I$(ROOT)/deps -I$(ROOT)/deps/stb \
-DRARCH_INTERNAL -DHAVE_CONFIGFILE -DHAVE_NETWORKING -D_GNU_SOURCE
CFLAGS += -O1 -Wall -std=gnu99
ifneq ($(SANITIZER),)
CFLAGS += -fsanitize=$(SANITIZER) -fno-omit-frame-pointer -g1
LDFLAGS += -fsanitize=$(SANITIZER)
endif
all: cli_override_rows_test$(EXE)
cli_override_rows_test$(EXE): cli_override_rows_test.c $(ROOT)/configuration.c $(ROOT)/configuration.h
$(CC) $(CPPFLAGS) $(CFLAGS) -fwhole-program $< $(LDFLAGS) -lm -o $@
check: cli_override_rows_test$(EXE)
$(RUNNER) ./cli_override_rows_test$(EXE)
clean:
rm -f cli_override_rows_test cli_override_rows_test.exe
.PHONY: all check clean