Problem
The backend and syscall numbers come from the compiler's own host, so a Home program cannot be cross-compiled; --target is only honored together with --kernel. packages/build/src/cross_compilation.zig exists but nothing references it.
Evidence (origin/main @ d4b219507)
src/main.zig:3845-3866src/main.zig:3912packages/codegen/src/native_codegen.zig:3532packages/codegen/src/native_codegen.zig:4687packages/codegen/src/native_codegen.zig:5613
Scope
- Thread a target (arch + OS + ABI) through native codegen instead of
builtin.target. - Select the object format, syscall table and calling convention per target.
Acceptance criteria
- On a macOS host,
home build --target=x86_64-linuxproduces a binary that runs in a Linux container, and vice versa.