The gfx tests build again: t_gl_imports defines g_key18, which hle.c's counter gate writes since f3ec8fc8 and loader.c (not linked by the test) defines, and the tests' Makefile regenerates game_profile.h on every make as the host's and the host tests' do, so a header from an older game.py no longer stops the suite on undeclared DM_GAME_* defines (game.py writes it only when it changes)

This commit is contained in:
seedds committed 2026-11-11 01:41:43 +08:00
1 parent 4c574a6f05
commit a77c0ee8a6
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -15,7 +15,8 @@ CFLAGS=-O1 -g -Wall -Wno-unused-function -I../nvn/include -I$(dir $(GAME_H)) -I$
GFX=$(filter-out ../nvn/hle_nvn.c,$(sort $(wildcard ../nvn/*.c ../nvn/*.m ../nvn/*.S ../tex/*.c ../tex/*.m)))
GFX_H=$(wildcard ../nvn/*.h ../nvn/*.inc ../nvn/include/*.h ../tex/*.h) $(GAME_H) $(MSL_H)
.DEFAULT_GOAL := t_nvn # the profile header rule comes first, so keep the default goal as before
$(GAME_H):
# Regenerated on every make (host_msl_force), by the host Makefile: a header from an older game.py lacks newer defines; game.py writes it only when it changes, so an unchanged header rebuilds no test
$(GAME_H): host_msl_force
$(MAKE) -C ../../host game_profile GAME=$(GAME)
$(MSL_H): $(wildcard ../msl/*.metal) ../tools/host_msl.py host_msl_force
$(MAKE) -C ../../host host_msl GAME=$(GAME)
+1
View File
@@ -8,6 +8,7 @@ void *front_metal_layer(void) { return NULL; }
module_t *module_of(const void *p) { (void)p; return NULL; }
module_t *g_mod; int g_nmod;
struct dm_flags g_flag;
pthread_key_t g_key18; // written by hle.c's counter gate for mrs x18, cntpct_el0; in the host it is defined in loader.c (never created here: no gate runs)
void svc_thread_dump(void) {}
void dm_vi_layer_size(int *w, int *h) { *w = *h = 0; }
void dm_vi_layer_crop(int c[4]) { memset(c, 0, 4 * sizeof *c); }