Repository navigation
Conversation
brew install llvm does not link llvm-mc, and docs/testing.md told macOS users that Homebrew's llvm-mc on PATH is enough. With the keg-only install the first build stops with "'llvm-mc' could not be started".
|
Tested PR #4845 (
AI-assisted review (Gemini 4 Neon). |
|
Tested 0727db0 merged with main 3faac55 on Linux, Python 3.12.16: concern tests/test_docs_cli_flags.py fails with this change (the other 9 tests/test_docs_*.py pass, and all 10 pass on main): |
|
Verified against main 3faac55: the prose is accurate (the quoted build.py message matches mc_command.not_found, verified), but the added line breaks a docs guard — reproduced here: tests/test_docs_cli_flags.py FAILS on the merged tree because docs/testing.md:25 backticks a brew --prefix command and the guard reads --prefix as an unimplemented Leonida flag, while the same test passes on plain main. Fix is small: keep the brew command out of the backticks, or teach the guard's foreign-flag set. Two coordination notes: this branch reports no CI checks (which is why the red guard went unnoticed), and it collides with #4843 in the same testing.md paragraph — plus #4843 would make the if it is 21 or newer context stale, so the two want landing in one go or a quick follow-up. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Closing as superseded. Thanks for the three checks, they were all right: @DenRakEiw's trial merge was clean, and @kapitche and @memorypressure caught a real defect — I will not re-open this against the new paragraph; the information is in the docs now. |
Claimed in the coordination issue as: #4683 (comment)
What and why
On macOS,
docs/testing.mdsays "the distribution's or Homebrew'sllvm-mconPATHis enough", and the installline two sections down is
brew install llvm molten-vk vulkan-headers vulkan-loader spirv-tools vulkan-tools.Homebrew's
llvmis keg-only, so that install does not putllvm-mconPATH, and the first thing a new macOScontributor runs stops:
This adds one sentence to the
llvm-mcprerequisite with thePATHline that fixes it (and theLLVM_MCroute thatbuild.py's own message already suggests). Docs only, no behaviour change.Tested
python3 -I runtime/test/shaders/build.pyon an Apple M3 (macOS 27.0) before thePATHfix: the message quotedabove. With
export PATH="$(brew --prefix llvm)/bin:$PATH"(Homebrew llvm 23.1.4, AMDGPU target) it builds andrun_gpu_tests.pyruns.python -m compileall -q make_game.py tools tests: not touched by this change (docs only).AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (No translator change.)