Repository navigation
clang-cl-xwin: name llvm-mt at configure when it is missing - #8158
Draft
lordra9-svg wants to merge 1 commit into
Draft
lordra9-svg wants to merge 1 commit into
lordra9-svg wants to merge 1 commit into
Conversation
The toolchain defaults CMAKE_MT to llvm-mt, and CMake runs it after every link to merge manifests. A host without it (Homebrew's LLVM on Linux does not install llvm-mt) failed at link time with a bare `MT: command "llvm-mt" ... no such file or directory`, after the whole build had compiled. Resolve CMAKE_MT with find_program in the toolchain file and stop at configure time with the tool's name and the two fixes: install LLVM from the distribution, or pass -DCMAKE_MT=<path>. docs/testing.md says the same next to the xwin commands. Tested on Bazzite 45 (Fedora 45), clang-cl 23.1.6, xwin SDK 10.0.26100: - -DCMAKE_MT=llvm-mt-does-not-exist fails at configure with the new message - the normal configure and the full cross-build still succeed - gameinput, loader and pe_loader pass under Wine 11.0
lordra9-svg
force-pushed
the
llvm-mt-configure-check
branch
from
November 23, 2026 18:13
27ca05a to
061a310
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #7333 (comment)
Depends on: #7347 (touches the same toolchain file; see "Overlap" below)
What and why
The
clang-cl-xwintoolchain defaultsCMAKE_MTtollvm-mt, and CMake runs it after every link to mergemanifests. Homebrew's LLVM formula on Linux does not install
llvm-mt, so a host that followsdocs/testing.mdcompiles the whole tree and then dies at the first link with a bare
MT: command "llvm-mt" ... no such file or directory, with nothing saying which tool is missing or how to fix it.This resolves
CMAKE_MTwithfind_programinruntime/cmake/clang-cl-xwin.cmakeand stops at configure time withthe tool's name and the two ways out:
docs/testing.mdsays the same next to the xwin commands.Overlap
#7347 (
labj1987) fixes the other missing Homebrew tool in this file —dumpbin/CMAKE_DLLTOOLfor SDL3 — andalready touches the same region. This change adds an independent block after the existing tool loop, so the two
should rebase cleanly either way; the second one to land just keeps both blocks.
Tested
On Bazzite 45 (Fedora 45), clang-cl 23.1.6 (AMDGPU target), xwin SDK 10.0.26100, CMake/Ninja from Homebrew, Wine
11.0-staging in a Fedora 43 distrobox, RADV Mesa 26.2.7 on a Radeon RX 7800 XT (gfx1101):
-DCMAKE_MT=llvm-mt-does-not-existfails at configure with the message above, before any compile.CMAKE_MTstill succeeds, and the fullruntime/build/windowscross-build links everytarget (143 test executables);
llvm-mtcomes fromPATH.gameinput,loader,pe_loaderandd3d12_vulkan_devicerun under Wine; the first three pass, the last skipsevery comparison because Wine exposes no host D3D12 device.
python -I tests/test_i18n_index.pyandpython3 -m compileall make_game.py tools testspass.python -I tests/test_docs_links.pyfails ondocs/dev-tools.md→../runtime/README.md#a-600-frame-headless-guest-scene.That is pre-existing: it fails identically on
upstream/mainat042c5f378, because thepowershellfence openedat
runtime/README.md:459is never closed. It is already claimed as EGEN-RUNTIME-README-FENCE (#7351) with #8169open for the fence and #7935 for the checker's fence pairing, so this pull request leaves it alone.
AI-assisted: yes (OpenCode)
Checklist
docs/design.md, with how it was confirmed. (n/a: notranslator change)