Skip to content

refactor: organize driver modules and definition order - #211

Merged
cruskell merged 2 commits into
mainfrom
codex/organize-driver-and-definition-order
Oct 18, 2026
Merged

cruskell merged 2 commits into
mainfrom
codex/organize-driver-and-definition-order

Conversation

@cruskell

Copy link
Copy Markdown
Owner

Organize the C build driver as a standard directory binary with main.rs, argument parsing in arguments.rs, and separate GNU/Darwin linker modules beneath llvm_tools.rs. Preserve all Cargo target names/kinds/editions, backend selection, compiler/linker option ordering and executable behavior; remove the explicit llvm_tools path attribute and document the layout.

Also finish definition-order cleanup: place the toolchain module declaration and shared generator imports with their peers, group shared ABI data with target enums, put public parser data before private declarator helpers, and move the inline assembly renderer after the node representation/operations. All 19 driver method bodies and the relocated renderer/declarator resolver are unchanged.

Validation: Rust 1.86 make lint and cargo test --all-features passed (51 unit, 2,101 integration and one doc test; two optional LLVM toolchain tests ignored locally). Cargo metadata target comparison and moved-body checks passed, as did git diff --check. macOS/AArch64 execution was not run locally.

@cruskell
cruskell merged commit e635860 into main Oct 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant