build(tools): Linux's compiler is built for x86 alone, half the size #3120
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3120
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:build/llvm-x86"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Linux builder carries a compiler that can target every processor LLVM knows, though a game build only ever targets x86. It is the biggest thing in the download.
tools.lock's linux-x64llvmis now LLVM 23.1.5 built from source with the X86 target alone: the same file list and version, built as upstream builds its release (ThinLTO, PGO, BOLT). The Linux builder gets about 50 MB smaller (estimate). Windows uses llvm-mingw and is unchanged.Read first:
builder/tools/llvm-from-source/build.sh(how the package was made) and the new paragraph indocs/dev/reference/releases.md.Two things this gives up:
LONGSHOT_E2E=1is removed and the test says it is skipped.llvm-linux-x6423.1.5-x64-2, SHA-2568e4df133ad3588fd14eb1d62020deea7b4802b1bf2d1d7e23d30c85503d62c92).make.shand the Longshot tools workflow do not make it.Testing
Tested: Linux, RTX 3090: a full game build with the new compiler (
dev.py game: 878 of 878 units, none failed, 4 min), thendev.py smokeon it: PASS, in play from kokiri-start for 900 frames, the menu opened.tests/test_tools_pins.pyandtest_tools_check.pypass. The binaries list x86 and x86-64 only, need at most GLIBC 2.34, and hold no home-folder paths.mise run testwas not run.Still to test:
Measurements
Verdict: half the compiler's size, with the same build time and the same compiled objects.
Setup: the AMD lab PC (i7-9700K), cold game builds from source of main
6167e8aa, no shader preparation or upscalers, runs interleaved. Runs with a CI job on the PC at the same time are left out.6167e8aa49178b6dThe "after" column used the package this PR names. All 879 objects were byte-identical between the two compilers;
longshot-game's code is the same size and the file differs by 256 bytes, cause not found. The numbers still hold onca5d3078: the compiler and the compile flags are unchanged since6167e8aaas far as this change goes.Risks
tools.lockline restores the old package, which stays in the store.main.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (not run)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
Tested in game: Linux, RTX 3090, NVIDIA 620.70.06: full game build with the new compiler, then headless dev.py smoke: in play from kokiri-start, 900 frames, the menu opened.
WIP: build(tools): Linux's compiler is built for x86 alone, half the sizeto build(tools): Linux's compiler is built for x86 alone, half the sizellun referenced this pull request2026-12-03 21:36:06 +00:00
llun referenced this pull request2026-12-03 21:42:52 +00:00