upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorbhimio rice <bhimio@bhimio.xyz>2026-11-23 20:35:58 -0500
committerbhimio rice <bhimio@bhimio.xyz>2026-11-23 20:51:04 -0500
commitfca3be703c20767ea3e9f837eaab17ef6199f8e0 (patch)
tree187fd888cfbd83479cf112bb8754c9f156b422db /docs/testing.md
parent9ec34cdff41b19d7671bc260e5f40dc69790d905 (diff)
fix(linux): find a versioned llvm-mc and give Linux install hints
Debian and Ubuntu's llvm-<N> packages install llvm-mc only as llvm-mc-<N> and /usr/lib/llvm-<N>/bin/llvm-mc. With LLVM_MC unset, the build looked for the plain name alone and stopped with Windows advice (scripts\build_llvm_mc.ps1, WSL), while tests/conftest.py already found the versioned install, so the pytest suites passed where make_game.py failed. mc_command() now keeps the plain llvm-mc when it is on PATH (the name a work folder's disassembly record holds) and otherwise takes the newest versioned install, by version number. install_hint() gives each OS its own advice; the preflight, shader_disasm.py and not_found() use it, and the SPIRV-Tools hint names the distribution package off Windows and macOS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 71edca6cc..f15177316 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -20,7 +20,9 @@ This page collects the setup steps and the problems testers have run into so far
20 - `llvm-21` in WSL, with `LLVM_MC` set to the whole command: 20 - `llvm-21` in WSL, with `LLVM_MC` set to the whole command:
21 `LLVM_MC="wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc"`. 21 `LLVM_MC="wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc"`.
22 22
23 On Linux, the distribution's `llvm-mc` on `PATH` is enough, if it is 21 or newer. On macOS, Homebrew's `llvm` is 23 On Linux, the distribution's `llvm-mc` on `PATH` is enough, if it is 21 or newer. Debian and Ubuntu's `llvm-21`
24 installs it only as `llvm-mc-21` and `/usr/lib/llvm-21/bin/llvm-mc`; with `LLVM_MC` unset, the tools take the newest
25 such versioned install when there is no plain `llvm-mc` (`tools/mc_command.py`). On macOS, Homebrew's `llvm` is
24 keg-only, so `brew install llvm` doesn't put `llvm-mc` on `PATH`: the pytest suites find it in 26 keg-only, so `brew install llvm` doesn't put `llvm-mc` on `PATH`: the pytest suites find it in
25 `/opt/homebrew/opt/llvm*/bin` (or `/usr/local/opt/llvm*/bin` on Intel), and the other tools need 27 `/opt/homebrew/opt/llvm*/bin` (or `/usr/local/opt/llvm*/bin` on Intel), and the other tools need
26 `LLVM_MC="$(brew --prefix llvm)/bin/llvm-mc"`. 28 `LLVM_MC="$(brew --prefix llvm)/bin/llvm-mc"`.