tools: verify.sh fails fast when a Mac has no Metal Shader Converter #392

Manually merged
github merged 1 commit from github-bot/gh-389 into main 2026-11-27 16:29:46 +00:00 AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 16:12 UTC · original
AnastasisKon:vibe/verify-msc-check-f18f96 → main · +74 −0 · 3 files · 1 commits · merged 2026-11-27 16:27 UTC

The native victory-gpu tests convert DXIL through libmetalirconverter; without the dylib they panic indirectly ('no mesh pipeline', a dlopen error) and look like GPU bugs (#382). verify.sh now checks the resolved dylib (VICTORY_MSC_DYLIB or Apple's default path) on Darwin before any gate and exits with an install hint; off a Mac the check is skipped, so hostless runs are unaffected. tools/macos/tests/verify-msc.sh covers the three paths (missing on a Mac, missing off a Mac, present on a Mac) with stubbed uname/rustup, and the macos-scripts CI job runs it.

What this changes

How it was tested

  • cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings
  • Ran the game (say how far it got), or not needed

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md
  • New diagnostics are behind a VICTORY_* variable and documented
**@⁠AnastasisKon** on GitHub · 2026-11-27 16:12 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/389) `AnastasisKon:vibe/verify-msc-check-f18f96` → `main` · +74 −0 · 3 files · 1 commits · merged 2026-11-27 16:27 UTC The native victory-gpu tests convert DXIL through libmetalirconverter; without the dylib they panic indirectly ('no mesh pipeline', a dlopen error) and look like GPU bugs (#382). verify.sh now checks the resolved dylib (VICTORY_MSC_DYLIB or Apple's default path) on Darwin before any gate and exits with an install hint; off a Mac the check is skipped, so hostless runs are unaffected. tools/macos/tests/verify-msc.sh covers the three paths (missing on a Mac, missing off a Mac, present on a Mac) with stubbed uname/rustup, and the macos-scripts CI job runs it. ## What this changes <!-- One change per pull request. Name the issue you claimed for it: Refs #123 (or Closes #123). --> ## How it was tested - [ ] `cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory` - [ ] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` - [ ] Ran the game (say how far it got), or not needed ## Checklist - [ ] No game files, game code, disassembly listings or SDK files are included - [ ] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md - [ ] New diagnostics are behind a `VICTORY_*` variable and documented
The native victory-gpu tests convert DXIL through libmetalirconverter;
without the dylib they panic indirectly ('no mesh pipeline', a dlopen
error) and look like GPU bugs (#379). verify.sh now checks the resolved
dylib (VICTORY_MSC_DYLIB or Apple's default path) on Darwin before any
gate and exits with an install hint; off a Mac the check is skipped, so
hostless runs are unaffected. tools/macos/tests/verify-msc.sh covers the
three paths (missing on a Mac, missing off a Mac, present on a Mac) with
stubbed uname/rustup, and the macos-scripts CI job runs it.

Co-authored-by: AnastasisKon <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 16:13:21 +00:00
github manually merged commit daf8b1f1bd into main 2026-11-27 16:29:46 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 16:27 UTC · original

Merged in b998bb65. Ran its script test and the other gates locally. Thanks.

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 16:27 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/389#issuecomment-7223290827) Merged in b998bb65. Ran its script test and the other gates locally. Thanks.
This discussion has been locked. Commenting is limited to contributors.
No description provided.