Skip to content

fix(build): guard Laguna Marlin-only helper - #25

Merged
mudler merged 2 commits into
mudler:mainfrom
localai-org-maint-bot:cron/fix-laguna-metal-warning
Aug 3, 2026
Merged

fix(build): guard Laguna Marlin-only helper#25
mudler merged 2 commits into
mudler:mainfrom
localai-org-maint-bot:cron/fix-laguna-metal-warning

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Contributor

Fixes the actual AppleClang failure blocking LocalAI PR #11174.

LagunaMarlinMoeEnabled() had internal linkage but was defined outside VT_MARLIN_NVFP4, while every consumer is compiled only inside that feature guard. Metal/non-CUDA builds therefore promoted the resulting unused-function warning to an error. This moves the helper under its owning guard and adds a static regression test.

Verification:

  • python3 -m unittest tests.scripts.test_device_leakage.RealTreeTests.test_laguna_marlin_gate_helper_is_feature_guarded
  • python3 tests/scripts/test_device_leakage.py (25/25)
  • python3 scripts/check-device-leakage.py (DSR 32, baseline unchanged)
  • python3 scripts/check-doc-checkpoint.py --commit HEAD
  • python3 scripts/check-agent-record.py
  • git diff HEAD^ --check

LocalAI Darwin CI remains the binding AppleClang build verification.

Keep the Marlin environment gate out of non-Marlin translation units so AppleClang Metal builds do not fail -Werror on an unused internal helper.

FOLLOWING_AGENTS_PROTOCOL

Assisted-by: Codex:gpt-5 [systematic-debugging] [test-driven-development]
@localai-org-maint-bot
localai-org-maint-bot force-pushed the cron/fix-laguna-metal-warning branch from 065373d to 355fcbe Compare August 3, 2026 03:05
Keep the GCC 13 false-positive suppression out of Clang builds, where the unsupported warning name is fatal under the project's warning policy. Add a regression gate for the compiler boundary.

FOLLOWING_AGENTS_PROTOCOL

Assisted-by: Codex:gpt-5
@mudler
mudler merged commit 265e3bf into mudler:main Aug 3, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants