From c9688bed9d05a24c6329d5b24ee30e10b81e67a9 Mon Sep 17 00:00:00 2001 From: gshlok <109033902+gshlok@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:29:33 +0530 Subject: [PATCH] test-input-focus: stub act_cycle_live input.c calls act_cycle_live (the Master Cycle check next to horse_riding), which the test doesn't define. GNU ld drops the caller with --gc-sections and never notices, but COFF lld reports the undefined symbol before it discards sections, so the test fails to link with -fuse-ld=lld (llvm-mingw, for one). A stub that says Link isn't on the Cycle keeps the link strict for symbols the test does reach, instead of allowing unresolved ones. Suggested by Dathinel in #1100. Co-Authored-By: Claude Opus 5.5 --- tools/test_input_focus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test_input_focus.c b/tools/test_input_focus.c index 9830d77a..96b388fa 100644 --- a/tools/test_input_focus.c +++ b/tools/test_input_focus.c @@ -60,6 +60,7 @@ uint64_t act_scan_pad(uint64_t b, uint32_t host) { (void)b; (void)host; return 0 uint64_t act_gameplay_buttons(uint64_t raw, int (*held)(int), uint32_t host) { (void)held; (void)host; return raw; } void act_publish(uint64_t keys, uint64_t pads) { (void)keys; (void)pads; } void act_poll(bool live) { (void)live; } +bool act_cycle_live(void) { return false; } void motion_script(float p, float r, float ps, float ys) { (void)p; (void)r; (void)ps; (void)ys; unexpected_helper(); } // (the control endpoint, the virtual gyro and the DSU poll: off here) bool control_enabled(void) { return false; }