mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 00:36:42 -10:00
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.
25 lines
740 B
Makefile
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
|