mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-11 03:11:33 -10:00
The sample and test builds used full debug info. -g1 keeps what sanitizer reports and backtraces need - function names, files and line numbers - and drops the variable and type information nobody reads in CI. Objects get about 30% smaller (rh265.o under ASan+UBSan: 5.1MB to 3.7MB), so the ccache caches hold more of each job's build and are quicker to restore and save.
25 lines
502 B
Makefile
25 lines
502 B
Makefile
TARGET := bind_trigger_axis_test
|
|
|
|
REPO_ROOT := ../../..
|
|
|
|
CFLAGS += -Wall -Wno-unused -std=gnu99 -g1 -O1 \
|
|
-I$(REPO_ROOT)/libretro-common/include
|
|
|
|
ifneq ($(SANITIZER),)
|
|
CFLAGS += -fsanitize=$(SANITIZER) -fno-omit-frame-pointer
|
|
LDFLAGS += -fsanitize=$(SANITIZER)
|
|
endif
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): bind_trigger_axis_test.c $(REPO_ROOT)/menu/menu_bind_trigger.h
|
|
$(CC) $(CFLAGS) -o $@ bind_trigger_axis_test.c $(LDFLAGS)
|
|
|
|
check: all
|
|
./$(TARGET)
|
|
|
|
clean:
|
|
rm -f $(TARGET)
|
|
|
|
.PHONY: all check clean
|