
- Boots: No
- Release: None
- File: None
Leonida Build Problems: Preflight Checks, Missing Tools and Rebuild Triggers
The Leonida build checks its prerequisites before it starts and rebuilds pieces when records change. This guide explains what happens when something is missing.
Contents
The Leonida Build and Preflight Checks
the Leonida build is driven by Build.bat, and the first thing Build.bat does is check. Before any build work starts, it runs preflight checks on prerequisites and on free space, and it lists anything missing in one go. That single, complete listing is the documented behaviour, and it shapes how a reader should respond when something is missing. There is no documented sequence of one missing item at a time, and this guide does not invent one. The build tells the reader everything missing at once, so the reader can address the whole list before the build is tried again.
As with the other build-behaviour guides, the honest endpoint applies throughout. The build creates files on the PC: a runtime, shaders, assets, and logs, as described in the output guide. A finished build launches no game. Nothing in this article claims otherwise, and the build problems described here are problems in producing those files, not problems in starting a game.
Preflight Checks Before Work Starts
Build.bat preflight checks prerequisites and free space, and lists anything missing in one go. The two kinds of check belong together in the preflight stage: prerequisites are the tools and pieces the build needs, and free space is the room the build needs to create its output and its work folders. A build that is short on either one is stopped before work starts, with the full list of what is missing, rather than partway through, with work already done and output half created.
Preflight checks run before any build work starts. Build.bat checks prerequisites and free space together, and lists anything missing in one go, so the reader sees the whole list before the build begins.
A Stopped Build Continues Where It Left Off
A stopped build continues where it left off. That is the documented behaviour when a build is interrupted, and it is an important reassurance for readers whose builds stop partway for any reason. The build does not restart from the beginning, and it does not discard the work already done. It resumes at the point it reached, and it carries on from there. The guide states the behaviour plainly, without adding reasons for a stop that the documentation does not give, and without inventing messages the build shows when it resumes.
The Linux Runtime Stage and Missing Tools
On Linux, the runtime stage is left out of the default stages when xwin and clang-cl are missing. The build does not attempt the runtime stage and fail partway; it leaves the stage out of the default run, so the rest of the build can proceed without it. That is the documented behaviour for a Linux build without those tools, and it is a deliberate piece of staging: the runtime stage is separable, and its absence from the default stages is reported by omission, not by a mid-build failure.
The build guide describes the build stages in order, including the runtime stage and its place among them, and readers who want the full staging picture should read it alongside this article. This guide's contribution is the behaviour: left out of the defaults without the tools, and listed up front when asked for without them. Both behaviours keep the reader informed before work starts, and both avoid the wasted effort of a build that fails after it has begun.
Rebuild Triggers and Records
Changing the records for llvm-mc, the translator, and the decoder reruns disassembly, translation, and export. The records are the build's memory of what was used to produce the disassembled, translated, and exported material, and a change to a record marks the material it produced as needing to be made again. The build then reruns the affected pieces, rather than the whole build, and the unchanged pieces are left as they are. The guide describes these as rebuild triggers, not as errors, because a changed record is not a failure. It is a signal that part of the output is stale, and the build's response is to refresh it.
The distinction between a trigger and an error matters for how a reader responds. An error suggests something went wrong and needs fixing. A rebuild trigger suggests something changed and needs remaking. The reader's response to a trigger is to let the build rerun the affected pieces, and to expect the rerun to take the time the pieces take. The build guides describe the pieces themselves, and the prerequisites guide describes the tools behind the records. This guide stays with the trigger behaviour: a changed record reruns its piece, and the build continues from there.
| Changed record | What reruns | How to read it |
|---|---|---|
| llvm-mc, translator, and decoder records | Disassembly, translation, and export rerun | A rebuild trigger, not an error; let the build rerun the affected pieces |
Build Check Sequence
- Let Build.bat run its preflight checks, and read the whole list of anything missing in one go before acting.
- Address the full preflight list, covering prerequisites and free space, before running the build again.
- If a build stops, run it again and let it continue where it left off, without discarding the work done so far.
- On Linux, expect the runtime stage to be left out of the default stages without xwin and clang-cl, and expect asking for it to list what is missing before any work starts.
- After changing llvm-mc, translator, or decoder records, expect disassembly, translation, and export to rerun as rebuild triggers.
The Build.bat options guide covers the options for driving Build.bat itself, and readers who want to control the build in detail should read it next. This guide has covered the behaviours the build shows when something is missing, when it stops, when a stage is left out, and when a record changes. Together, the two guides give the reader both the behaviour and the controls, without inventing messages or fixes for either.
Conclusion
The Leonida build checks before it starts, continues where it stops, stages the runtime work honestly on Linux, and reruns pieces when their records change. Build.bat lists missing prerequisites and free space in one go. A stopped build continues where it left off. On Linux, the runtime stage is left out of the default stages without xwin and clang-cl, and asking for it lists what is missing before any work starts. Changing the llvm-mc, translator, and decoder records reruns disassembly, translation, and export. Those are the documented behaviours, described as behaviours, with no invented error messages and no invented fixes.
Frequently Asked Questions
What does Build.bat do if prerequisites are missing?
Build.bat runs preflight checks on prerequisites and free space before any build work starts, and lists anything missing in one go, so the reader sees the whole list at once.
Does a stopped Leonida build start again from the beginning?
No. A stopped build continues where it left off, keeping the work already done and resuming at the point it reached.
What happens when llvm-mc, translator, or decoder records change?
Changing those records reruns disassembly, translation, and export. The reruns are rebuild triggers, not errors, and the build refreshes the affected pieces.