Skip to content

Commit f81fb2f

Browse files
unamedkrclaude
andcommitted
fix(moe): unconditional moe_shared_expert label (non-Metal build)
The label was inside #ifdef TQ_HAS_METAL but referenced via goto from non-Metal code paths (R5+ MoE fast-path skip). Non-Metal builds failed with 'use of undeclared label'. Make the label unconditional. Discovered during R8 clean rebuild bisect: cmake without -DTQ_BUILD_METAL=ON hit this build error. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 98cab93 commit f81fb2f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/engine/tq_moe.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,9 +1245,10 @@ moe_cpu_fallback: ;
12451245
}
12461246
}
12471247

1248-
#ifdef TQ_HAS_METAL
12491248
moe_shared_expert:
1250-
#endif
1249+
/* Label is referenced by goto from non-Metal code paths (R5+ MoE
1250+
* fast-path skip, line ~1065). Keep the label unconditional so
1251+
* non-Metal builds compile. */
12511252
/* Step 4: Shared expert (always-active, if present).
12521253
* TQ_MOE_NO_SHARED=1 disables it entirely for A/B testing against
12531254
* llama.cpp's presumed identical path. If disabling improves

0 commit comments

Comments
 (0)