Allow passing a custom os package to std #10392
Labels
os-bring-your-own
The "Bring Your Own Operating System" abstraction layer
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
standard library
This issue involves writing Zig code for the standard library.
Milestone
While working on
microzig
, we got the following question:How do we solve the startup problem?
std/start.zig
isn't made for custom OSes and forcing the user to type apub const panic = microzig.panic;
in each project is just boilerplate.Therefore, i propose that
zig
can take a new command line argument--other-os-implementation
which will provide a package definitionos
tostd
that can supplement the OS functions and startup code for any target that compiles for.os_tag = .other
. This package should be able to have other packages as dependencies.This allows us to write code with microzig that just looks like any other zig project:
Related issues:
The text was updated successfully, but these errors were encountered: