mirror of
https://github.com/rui314/mold.git
synced 2026-11-09 04:49:33 -10:00
Document why architecture targets use separate crates
This commit is contained in:
1 parent
3d67399506
commit
e2e85b3fc7
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
# Architecture crates
|
||||
|
||||
Each subdirectory is a small crate that instantiates the generic linker for
|
||||
one target architecture. Separate crates let Cargo compile the architectures
|
||||
in parallel. Instantiating all targets in one crate leaves a long serial
|
||||
compilation step.
|
||||
|
||||
The shared linker implementation lives in [`src/`](../src/), with
|
||||
architecture-specific code in [`src/arch/`](../src/arch/). These crates provide
|
||||
entry points that the [`cli/`](../cli/) executable selects for the input
|
||||
files' target.
|
||||
Reference in new issue
Block a user