52 lines
2.5 KiB
Markdown
52 lines
2.5 KiB
Markdown
# VoidBuildSystem development
|
|
|
|
## Scope and truth
|
|
|
|
Read docs/agent-workflow/STATE.md and TASKS.md, then the relevant roadmap plan.
|
|
This repository starts with a bootstrap and declaration SDK. Native builds,
|
|
TOML loading, package resolution, snapshots, watching and registry operation
|
|
must not be described as implemented until verified.
|
|
The accepted initial scope is in docs/agent-workflow/APPROVED_PLAN.md.
|
|
|
|
## Environment and checks
|
|
|
|
The user's environment provides `dev cpp-gcc -c COMMAND...` (GCC 16.2,
|
|
CMake 4.4.4, Ninja 1.13.2, Meson 1.12.1) and `dev cpp -c COMMAND...`
|
|
(Clang 23.1.3). Use the GCC environment for this C++26 bootstrap.
|
|
The bootstrap's source dependency is VoidLibrary at
|
|
3e254055e081a104f08df68dde39711bc7813518.
|
|
An explicit VBS_VOID_SOURCE_DIR override is development-only; never change
|
|
that external checkout. It may contain untracked secrets.
|
|
|
|
After the bootstrap exists:
|
|
```sh
|
|
dev cpp-gcc -c cmake -S . -B build/bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
dev cpp-gcc -c cmake --build build/bootstrap
|
|
dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure
|
|
```
|
|
Consult README.md for the local-source override and actual executable paths.
|
|
Format only owned C++ files, never the entire dependency or dirty checkout.
|
|
|
|
## Architecture boundaries
|
|
|
|
- Build descriptions and profiles are ordinary C++; TOML is dependency data.
|
|
- Keep host description compilation distinct from per-profile target evaluation.
|
|
- A description declares symbolic dependencies without resolving/building them.
|
|
- Preserve target/profile isolation, immutable input identities and explicit errors.
|
|
- Compilation database projections are separate from exact execution records.
|
|
- Metadata watchers never run foreign configure/build/install operations.
|
|
- Maintain detailed plans and mark future commands and interfaces as planned.
|
|
- Prefer VoidLibrary. Record reusable gaps for later upstream work rather than
|
|
editing another repository as an incidental fix.
|
|
|
|
## Coordination and safety
|
|
|
|
Use the supplied Astra/Sol workflow, precise task contracts and fresh reviews.
|
|
Workers share this checkout: respect exclusive task ownership.
|
|
Root owns documentation, dependency-pin changes and shared integration after
|
|
the initial bootstrap assignment completes.
|
|
Do not read or index .env files, keys, WG.conf, .git internals or ignored caches.
|
|
Do not stage, commit, push, deploy, or create remote repositories without a
|
|
separate user instruction. This task authorizes local initialization and edits.
|
|
Never copy an entire external checkout into a Nix store source.
|