Commit Graph

11 Commits

Author SHA1 Message Date
012907537b Merge pull request #3029 from frnandoooo 2026-11-22 15:14:10 -05:00
6443233376 Merge pull request #2975 from frnandoooo 2026-11-22 15:13:44 -05:00
fb030b1036 build_llvm_mc: persist an absolute installation path 2026-11-22 20:08:58 +01:00
f6b09ce2ab build_llvm_mc: reject retained sources from another LLVM release 2026-11-22 19:59:39 +01:00
cc29f9be93 Restore the console code page after the LLVM build 2026-11-22 19:43:57 +01:00
7db5591f2f Preserve Unicode paths in the Windows LLVM builder 2026-11-22 18:19:27 +01:00
a3969c3a2c build_llvm_mc: check out LLVM with core.longpaths, so a deep -Temp works
Some llvm/docs paths are about 150 characters. With a -Temp of about 100
characters the sparse checkout failed with "Filename too long" (Windows'
260-character limit) and the script stopped at "git sparse-checkout
failed.". The clone now sets core.longpaths=true in its own config only;
the user's global git config is untouched.
2026-11-22 14:53:13 +03:00
342028959a build_llvm_mc: install llvm-mc outside AppData, where the install manager's python can see it
python from the Python install manager (the WindowsApps alias) doesn't see folders other programs create under %LOCALAPPDATA% or %APPDATA%, so the old default made make_game.py report llvm-mc missing and the fuzzers stop with WinError 2 although LLVM_MC named the file. The default -Dest is now %USERPROFILE%\.leonida\llvm-mc, and the preflight explains an LLVM_MC that points into AppData.
2026-11-22 15:39:48 +07:00
ddb1faf9b7 Reject llvm-mc install paths inside the cleanup directory 2026-11-21 22:50:24 -05:00
c2df6ab458 Warn when post-install llvm-mc cleanup fails 2026-11-21 22:31:40 -05:00
95b2c091c8 Build a native Windows llvm-mc with the AMDGPU target, no WSL needed
scripts/build_llvm_mc.ps1 sparse-clones the LLVM sources llvm-mc needs,
builds it alone with LLVM_TARGETS_TO_BUILD=AMDGPU, static CRT and the DIA
SDK off (its headers need ATL, which the C++ build tools don't always
include), checks it disassembles an s_endpgm for gfx1013, keeps only
llvm-mc.exe and sets LLVM_MC for the user. README, docs/design.md and the
make_game.py / shader_disasm.py hints mention it next to the WSL route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:50:01 +01:00